Commit 4dca5dbb authored by Jan Včelák's avatar Jan Včelák 🚀

rrset from wire: parsed data can have trailing garbage

parent 5cb0ba2f
......@@ -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 */
......
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