|
@@ -158,6 +158,9 @@ parse_version_range(const char *s, const char *end_of_range,
|
|
if (next != end_of_range)
|
|
if (next != end_of_range)
|
|
goto error;
|
|
goto error;
|
|
|
|
|
|
|
|
+ if (low > high)
|
|
|
|
+ goto error;
|
|
|
|
+
|
|
done:
|
|
done:
|
|
*high_out = high;
|
|
*high_out = high;
|
|
*low_out = low;
|
|
*low_out = low;
|
|
@@ -208,10 +211,6 @@ parse_single_entry(const char *s, const char *end_of_entry)
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
|
|
|
|
- if (range->low > range->high) {
|
|
|
|
- goto error;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
s = comma;
|
|
s = comma;
|
|
while (*s == ',' && s < end_of_entry)
|
|
while (*s == ',' && s < end_of_entry)
|
|
++s;
|
|
++s;
|