]> git.ipfire.org Git - thirdparty/bind9.git/commit
Check the pointer alignments when deserialising
authorMark Andrews <marka@isc.org>
Wed, 19 Apr 2023 00:34:49 +0000 (10:34 +1000)
committerMark Andrews <marka@isc.org>
Fri, 5 May 2023 07:04:31 +0000 (07:04 +0000)
commit300a2fb4ba2c4b95010a6eca7f268367a62f89f8
tree5378c3bcb46a3c9da088065b719ce56c68f11ffa
parent9b57b81ed053404e95a674023e94f74c6755fb2f
Check the pointer alignments when deserialising

deserialize_corrupt_test may corrupt the pointers such that they
is no longer properly aligned.  Check that the alignment is consistent
with memory returned from isc_mem before checking the magic value.
lib/dns/rbt.c
lib/isc/mem.c