Skip to content
Snippets Groups Projects
Commit 4dca5dbb authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

rrset from wire: parsed data can have trailing garbage

parent 5cb0ba2f
No related branches found
No related tags found
No related merge requests found
......@@ -641,7 +641,9 @@ static int parse_rdata(const uint8_t *pkt_wire, size_t *pos, size_t pkt_size,
return ret;
}
assert(src_avail == 0);
if (src_avail > 0) {
return KNOT_EMALF;
}
/* Update pointers and write result */
......
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