Commit 5300a822 authored by Simon Ruderich's avatar Simon Ruderich
Browse files

slsm: tree: fix off-by-one uninitialized read

parent ff679414
......@@ -421,7 +421,7 @@ static const char *slsm_parse_component(const char *rule, size_t *remaining) {
len = strnlen(rule, *remaining);
if (rule[len])
if (len == *remaining || rule[len])
/* no 0 at end of string */
return NULL;
Supports Markdown
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