-
Notifications
You must be signed in to change notification settings - Fork 47
Oob read fixes #66
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
Oob read fixes #66
Conversation
- prevents several OOB reads
- ensures good 'state' of variable
- use single % as it wont execute additional code
- this solution is much cleaner
(This is purely cosmetic)
- previously only events were freed.
- adding 1 byte to array
- avoid need to check twice. - there are many more required elements in an OKT file.
- many checks vs mt2instrument - check wDataLen - it might be large enough to be negative in signed equiv. - len might be zero (or len-4)
- check before memcpy - check before reading ps[x] data
- Another octave of possible values, means no OOB read will occur.
- prevents strange negative numbers, - prevents divide by zero
…bmodplug into AliceLR-fuzz-patch-1-original
|
Woo, fixes have been merged :) When the dust has settled a bit, it's time for a new release. |
|
So far I've found a couple of minor redundant checks from combining this and my patch that can be revised. I also found more potential breakage in the Oktalyzer loader I somehow never noticed. Will follow up with a small patch after I test this a little more. edit: yep, 0.1 seconds of fuzzing with UBSan confirmed this loader has major alignment problems. |
Merge several OOB read fixes discovered from a long fuzzing operation (debrouxl).