3 Mar
2015
3 Mar
'15
9:59 p.m.
Dan Carpenter wrote:
We don't check for negatives so "pitchbend" can be SHRT_MIN here. It means that we can read up to 6 elements before the start of the opl3_note_table[] array.
There are several ways we could fix this. I have gone with what is maybe the lazier approach of just changing negative values to zero.
The lower bound is not zero but -8192.
Regards, Clemens