]> git.ipfire.org Git - thirdparty/glibc.git/commit
resolv: Support an exactly sized buffer in ns_name_pack [BZ #21359]
authorFlorian Weimer <fweimer@redhat.com>
Thu, 13 Apr 2017 09:56:28 +0000 (11:56 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 13 Apr 2017 09:56:28 +0000 (11:56 +0200)
commitc803cb9b24c6cea15698768e4301e963b98e742c
tree8b1dfb346ea50ccd7f1da044c65b60bb4b9aee27
parenta7ff1da8239a5f0e1927db9d5310f53cfea97fc2
resolv: Support an exactly sized buffer in ns_name_pack [BZ #21359]

This bug did not affect name resolution because those functions
indirectly call ns_name_pack with a buffer which is always larger
than the generated query packet, even in the case of the
longest-possible domain name.
ChangeLog
resolv/Makefile
resolv/ns_name.c
resolv/tst-ns_name.c
resolv/tst-ns_name_compress.c [new file with mode: 0644]
resolv/tst-resolv-basic.c