Skip to content
Snippets Groups Projects
Commit c5295cc1 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Spec conformance on protover: always reject ranges where lo>hi

parent 1fe0bae5
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,9 @@ parse_version_range(const char *s, const char *end_of_range,
if (next != end_of_range)
goto error;
if (low > high)
goto error;
done:
*high_out = high;
*low_out = low;
......@@ -208,10 +211,6 @@ parse_single_entry(const char *s, const char *end_of_entry)
goto error;
}
if (range->low > range->high) {
goto error;
}
s = comma;
while (*s == ',' && s < end_of_entry)
++s;
......
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