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).