diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-08-14 10:52:06 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-08-14 10:52:06 +0200 |
commit | e95c6f61920a0f9237cfb292fa44ad500e1df09b (patch) | |
tree | 5e0b22cbbb895a01a8a92741929be1051d752c95 /ChangeLog | |
parent | 2d7acfac3ebf266dcbc82d0d6cc576f626953a03 (diff) | |
download | glibc-e95c6f61920a0f9237cfb292fa44ad500e1df09b.tar glibc-e95c6f61920a0f9237cfb292fa44ad500e1df09b.tar.gz glibc-e95c6f61920a0f9237cfb292fa44ad500e1df09b.tar.bz2 glibc-e95c6f61920a0f9237cfb292fa44ad500e1df09b.zip |
nss_files: Fix file stream leak in aliases lookup [BZ #23521]
In order to get a clean test case, it was necessary to fix partially
fixed bug 23522 as well.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,18 @@ 2018-08-14 Florian Weimer <fweimer@redhat.com> + [BZ #23521] + [BZ #23522] + * nss/nss_files/files-alias.c (get_next_alias): During :include: + processing, bail out if no room, and close the stream before + returning ERANGE. + * nss/Makefile (tests): Add tst-nss-files-alias-leak. + (tst-nss-files-alias-leak): Link with libdl. + (tst-nss-files-alias-leak.out): Depend on nss_files. + + * nss/tst-nss-files-alias-leak.c: New file. + +2018-08-14 Florian Weimer <fweimer@redhat.com> + * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for server_user, stat_user. |