]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix stack-use-after-scope in dns_message_checksig test
authorOndřej Surý <ondrej@isc.org>
Tue, 27 Sep 2022 11:00:09 +0000 (13:00 +0200)
committerPetr Špaček <pspacek@isc.org>
Tue, 27 Sep 2022 11:23:25 +0000 (13:23 +0200)
commit6a349d5c295df032d40eeb9959562e788046e332
treeefc6c75dc5939f54cd4581f82c83b2ff5e30e008
parenta24ced44ab5aecd7f36a27d23c63bb14adc0d628
Fix stack-use-after-scope in dns_message_checksig test

Previously stack with buffer for test dns message went out of scope
before the message was processed. For fuzz testing its better to avoid
allocation, so let's avoid allocations completely and use simplest
possible static buffer.

Fixes: #3565
(cherry picked from commit 16377100ae145f2994e6e18f4dfc586403f31ec8)
fuzz/dns_message_checksig.c