-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
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
Parser falls over on unexpected HTML #6
Comments
Are you still able reproduce this with latest commit: 85b0940 ? I wasn't able to reproduce segfaults by changing
|
I was unable to reproduce any more crashes in that part of the code. I found multiple issues in tag parsers however. I will create a separate issue for that I think. |
Sorry I lied, here's an input it will crash on, on master. To replicate simply add
and feed the file in. |
parse_xy_img_dimensions
segfaults unless the input is in exactly the expected format; this is both due to not checking thatstrstr
is not returning null as well as not checking return code ofsscanf
for number parsing.parse_percent_similar
has exactly the same issue I expect. While the case may seem contrived, the segfault will happen if one of the domains changes the format of their output.I attach some inputs generated by AFL. You can replicate by feeding these as
html_data
inruiji.c
.ruiji-crashes.tar.gz
The text was updated successfully, but these errors were encountered: