]> git.ipfire.org Git - thirdparty/glibc.git/commit
support: Exit on consistency check failure in resolv_response_add_name
authorFlorian Weimer <fweimer@redhat.com>
Thu, 6 Nov 2025 13:49:21 +0000 (14:49 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 7 Nov 2025 07:50:44 +0000 (08:50 +0100)
commitb64335ff111c071fde61aec1c1a8460afb3d16d4
tree1d683c2a081592e960c9302dfcb0feb05f44f086
parente45af510bc816e860c8e2e1d4a652b4fe15c4b34
support: Exit on consistency check failure in resolv_response_add_name

Using TEST_VERIFY (crname_target != crname) instructs some analysis
tools that crname_target == crname might hold.  Under this assumption,
they report a use-after-free for crname_target->offset below, caused
by the previous free (crname).

Reviewed-by: Collin Funk <collin.funk1@gmail.com>
support/resolv_test.c