diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-01-31 18:49:58 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-01-31 18:49:58 +0100 |
commit | 2bac7daa58da1a313bd452369b0508b31e146637 (patch) | |
tree | cb26cc3d34519adb5110c443400ff47b3c3cc00b /nss/Makefile | |
parent | de44ab67aa4eec369deea828733567c35a0611c0 (diff) | |
download | glibc-2bac7daa58da1a313bd452369b0508b31e146637.tar.gz glibc-2bac7daa58da1a313bd452369b0508b31e146637.tar.xz glibc-2bac7daa58da1a313bd452369b0508b31e146637.zip |
nss_files: Fix /etc/aliases null pointer dereference [BZ #24059]
If /etc/aliases ends with a continuation line (a line that starts with whitespace) which does not have a trailing newline character, the file parser would crash due to a null pointer dereference. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nss/Makefile')
-rw-r--r-- | nss/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nss/Makefile b/nss/Makefile index 0fa28f0c5e..e66e01d45a 100644 --- a/nss/Makefile +++ b/nss/Makefile @@ -68,6 +68,7 @@ tests += tst-nss-files-hosts-erange tests += tst-nss-files-hosts-multi tests += tst-nss-files-hosts-getent tests += tst-nss-files-alias-leak +tests += tst-nss-files-alias-truncated endif # If we have a thread library then we can test cancellation against @@ -176,3 +177,4 @@ $(objpfx)tst-nss-files-hosts-multi: $(libdl) $(objpfx)tst-nss-files-hosts-getent: $(libdl) $(objpfx)tst-nss-files-alias-leak: $(libdl) $(objpfx)tst-nss-files-alias-leak.out: $(objpfx)/libnss_files.so +$(objpfx)tst-nss-files-alias-truncated: $(objpfx)/libnss_files.so |