Merge branch 'marka-bad-bool-value' into 'main'

Ensure that a bool is stored in 'eol'

See merge request isc-projects/bind9!3960
This commit is contained in:
Mark Andrews 2020-08-14 04:42:23 +00:00
commit 4005cc3864

View file

@ -61,9 +61,9 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
data += sizeof(expect);
size -= sizeof(expect);
(void)memmove(&eol, data, sizeof(eol));
data += sizeof(eol);
size -= sizeof(eol);
eol = *data != 0;
data += 1;
size -= 1;
isc_buffer_constinit(&buf, data, size);
isc_buffer_add(&buf, size);