mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-14 05:53:36 -04:00
aedc4c3e37
A style-sheet containing the string "url( )" with 1 or more characters of whitespace in between the parentheses triggered an assertion failure in scan_css_token. scan_css_token would find the left parenthesis, find the right parenthesis, and then scan forwards from the left parenthesis for a non-whitespace character to find the start of the URL and backwards from the right parenthesis to find the end of the URL. If there were whitespace and nothing else, the start would be past the end, the routine would compute a negative length for the URL, and then the routine would trigger an assertion failure. Now the routine simply enforces a lower bound of length 0 for the URL. |
||
---|---|---|
.. | ||
Makefile | ||
scanner.c | ||
scanner.h |