wrong null pointer check
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pam-python (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned | ||
Trusty |
New
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Building pam-python from source on Ubuntu bionic fails with this error message:
make[2]: Entering directory '/tmp/source_
gcc -O0 -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-
CFLAGS="-Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-
running build
running build_ext
building 'pam_python' extension
creating build
creating build/temp.
x86_64-
pam_python.c: In function 'call_handler':
pam_python.
if (dot != 0 || strcmp(dot, ".py") == 0)
In file included from /usr/include/
/usr/include/
extern int strcmp (const char *__s1, const char *__s2)
^~~~~~
cc1: all warnings being treated as errors
error: command 'x86_64-
make[2]: *** [pam_python.so] Error 1
Makefile:9: recipe for target 'pam_python.so' failed
make[2]: Leaving directory '/tmp/source_
make[1]: *** [lib] Error 2
make: *** [build-arch] Error 2
Makefile:6: recipe for target 'lib' failed
make[1]: Leaving directory '/tmp/source_
debian/rules:38: recipe for target 'build-arch' failed
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
The null pointer check condition is wrong in pam_python.c:2229
information type: | Public → Public Security |
Changed in pam-python (Ubuntu Xenial): | |
status: | New → Fix Released |
Changed in pam-python (Ubuntu Bionic): | |
status: | New → Fix Released |
no longer affects: | pam-python (Ubuntu Focal) |
The attachment "Fix wrong null pointer check" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]