Commit bf7aa8d6 authored by Ondřej Surý's avatar Ondřej Surý

Remove extra logging from packet fuzzing main loop

parent e436100d
......@@ -27,20 +27,14 @@
int main(void)
{
for(;;) {
log("reading packet data from stdin");
uint8_t buffer[UINT16_MAX + 1] = { 0 };
size_t len = fread(buffer, 1, sizeof(buffer), stdin);
log("parsing packet of size %zu", len);
knot_pkt_t *pkt = knot_pkt_new(buffer, len, NULL);
assert(pkt);
int r = knot_pkt_parse(pkt, 0);
knot_pkt_free(&pkt);
log("result %d (%s)", r, r == KNOT_EOK ? "success" : "failure");
if (getenv("AFL_PERSISTENT")) {
raise(SIGSTOP);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment