mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 00:22:36 +02:00
parse_single_byte_content_range_as_values() has the condition on
consume_specific('*') inverted. When the complete-length is a
numeric value like "1000", the negated check causes the wildcard
branch to run, discarding the length. When it is "*" (unknown),
the else branch tries to parse digits after consuming the "*",
which fails entirely.
Removing the "!" fixes both cases so that "*" correctly produces
an empty complete_length, and numeric values are parsed normally.
Also adds an EOF check after parsing to reject trailing garbage,
matching the pattern used by parse_single_range_header_value().
12 KiB
12 KiB