From 2bac7daa58da1a313bd452369b0508b31e146637 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 31 Jan 2019 18:49:58 +0100 Subject: 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 --- nss/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nss/Makefile') 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 -- cgit 1.4.1