Skip to content
Snippets Groups Projects
Commit 6b17ddfb authored by Marek Vavruša's avatar Marek Vavruša
Browse files

semantic-check: fix possible buffer overflow (see d0ec8c)

parent 7524fe7f
Branches
Tags
No related merge requests found
......@@ -798,7 +798,7 @@ static int sem_check_node_optional(const knot_zone_contents_t *zone,
memcpy(wildcard, "\x1""*", 2);
knot_dname_to_wire(wildcard + 2,
knot_wire_next_label(ns_dname, NULL),
sizeof(wildcard));
sizeof(wildcard) - 2);
const knot_node_t *wildcard_node =
knot_zone_contents_find_node(zone,
wildcard);
......
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