mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-23 18:04:10 -05:00
render buf was too big
It was misdeclared as a array of pointers (uint8_t*[]) and there where too many elements (64 * 1024) instead of (64 * 1024 - 1).
This commit is contained in:
parent
50df71a881
commit
8faf12eace
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ bool debug = false;
|
|||
static isc_mem_t *mctx = NULL;
|
||||
static uint8_t *output = NULL;
|
||||
static size_t output_len = 1024;
|
||||
static uint8_t *render_buf[64 * 1024];
|
||||
static uint8_t render_buf[64 * 1024 - 1];
|
||||
|
||||
int
|
||||
LLVMFuzzerInitialize(int *argc __attribute__((unused)),
|
||||
|
|
@ -103,7 +103,7 @@ render_message(dns_message_t **messagep) {
|
|||
isc_buffer_t buffer;
|
||||
dns_compress_t cctx;
|
||||
|
||||
isc_buffer_constinit(&buffer, render_buf, sizeof(render_buf));
|
||||
isc_buffer_init(&buffer, render_buf, sizeof(render_buf));
|
||||
|
||||
message->from_to_wire = DNS_MESSAGE_INTENTRENDER;
|
||||
for (size_t i = 0; i < DNS_SECTION_MAX; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue