-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fuzzed Crashes #43
Comments
alberthdev
added a commit
that referenced
this issue
Mar 25, 2017
When run_first_pass_line / run_first_pass_line_sec changes the ptr to NULL, run_first_pass does not check for this and attempts to dereference the NULL ptr, causing a crash. Adding a NULL check and breaking out of the loops fixes this! Fixes one of the fuzzed lines in #43.
alberthdev
added a commit
that referenced
this issue
Mar 26, 2017
instr->instr_size was not being checked, and as a result an abnormally long .addinstr would result in the following for loop modifying instr->args, and possibly other parts of the memory. This was fixed by checking to make sure that instr->instr_size was 8 or below, and if not, failing. As a result of a addinstr being possibly invalid, errors.h was updated to reflect a possibly invalid addinstr.
Updating this as I take a stab at each:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These inputs all cause spasm to segfault:
Note that the last one only crashes sometimes in hardened mode and occasionally corrupts malloc otherwise.
The text was updated successfully, but these errors were encountered: