mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
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 16377100ae)
This commit is contained in:
parent
a24ced44ab
commit
6a349d5c29
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ create_message(dns_message_t **messagep, const uint8_t *data, size_t size,
|
|||
isc_result_t result;
|
||||
dns_message_t *message = NULL;
|
||||
isc_buffer_t b;
|
||||
unsigned char buf[65535];
|
||||
static unsigned char buf[65535];
|
||||
|
||||
isc_buffer_init(&b, buf, sizeof(buf));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue