diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-10-11 07:07:51 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-10-11 07:07:51 +0200 |
commit | d8425e116cdd954fea0c04c0f406179b5daebbb3 (patch) | |
tree | 0d82c5f6f571653665912cf0fd0d3062c594695f /ChangeLog | |
parent | 78e806fd8cd8c918d3bbe1bcdf9091ab365e4a69 (diff) | |
download | glibc-d8425e116cdd954fea0c04c0f406179b5daebbb3.zip glibc-d8425e116cdd954fea0c04c0f406179b5daebbb3.tar.gz glibc-d8425e116cdd954fea0c04c0f406179b5daebbb3.tar.bz2 |
nss_files: Avoid large buffers with many host addresses [BZ #22078]
The previous implementation had at least a quadratic space
requirement in the number of host addresses and aliases.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,15 @@ 2017-10-11 Florian Weimer <fweimer@redhat.com> + [BZ #22078] + Avoid large NSS buffers with many addresses, aliases. + * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite + using dynarrays and struct alloc_buffer. + * nss/Makefile (tests): Add tst-nss-files-hosts-multi. + (tst-nss-files-hosts-multi): Link with -ldl. + * nss/tst-nss-files-hosts-multi.c: New file. + +2017-10-11 Florian Weimer <fweimer@redhat.com> + [BZ #18023] * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct scratch_buffer. Eliminate gotos. |