Skip to content
Snippets Groups Projects
Commit c852c91a authored by Daniel Salzman's avatar Daniel Salzman
Browse files

tests-fuzz: avoid zero-length variable array in fuzz_packet (OSS-Fuzz fails to build)

parent b8877560
No related branches found
No related tags found
No related merge requests found
/* Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
/* Copyright (C) 2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -20,7 +20,7 @@
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
uint8_t copy[size];
uint8_t copy[1 + size];
memcpy(copy, data, size);
knot_pkt_t *pkt = knot_pkt_new(copy, size, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment