We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to reproduce:
$ echo -e '<table><b<>\x00<listing><select_int selectnumber=90000000000>' | ./w3m -T text/html -dump > /dev/null Segmentation fault $ echo -e '<table><b<>\x00<listing><select_int selectnumber=-90000>' | ./w3m -T text/html -dump > /dev/null Segmentation fault
Here, selectnumber could be negative, or positive but overflows to negative.
selectnumber
The corresponding code snippet:
6033 if (parsedtag_get_value(tag, ATTR_SELECTNUMBER, &n_select) 6034 && n_select < max_select) { 6035 select_option[n_select].first = NULL;
n_select is the selectnumber mentioned above. It will crash at line 6035.
n_select
Similar code pattern at line 6015:
if (parsedtag_get_value(tag, ATTR_TEXTAREANUMBER, &n_textarea) && n_textarea < max_textarea) { textarea_str[n_textarea] = Strnew();
this is found by afl-fuzz
The text was updated successfully, but these errors were encountered:
Prevent negative array index for selectnumber and textareanumber
a25fd09
Bug-Debian: #12
Fixed, thank you.
Sorry, something went wrong.
bde3a3e
Bug-Debian: #12 [CVE-2016-9424] Origin: https://anonscm.debian.org/cgit/collab-maint/w3m.git/commit/?id=a25fd09f74fb83499396935a96d63bb7cb8e2c58
No branches or pull requests
How to reproduce:
Here,
selectnumber
could be negative, or positive but overflows to negative.The corresponding code snippet:
n_select
is theselectnumber
mentioned above. It will crash at line 6035.Similar code pattern at line 6015:
this is found by afl-fuzz
The text was updated successfully, but these errors were encountered: