Closed henricj closed 9 months ago
modifyTimbre is set to 0xff in this path
mRhythmMode is initalized in each playback path like this example:
load_bnk_instrument(): strcpy(ncs, name.c_str());
the current two callers that reach have string limited, but adding an assertion or protection does not hurt
The array overflows I am not sure why the Coverity complains about. kNumPercussiveVoices == MAX_VOICES == 11 SetVolume() can receive voice 0-10 SetInstrument() => send_operator() can receive voice 0-11
They are all false positives as far as I can see, but for some of them we can add stuff to the code that does not have negative impact
A GitHub workflow runs Coverity for another project that uses adplug as a submodule. These were reported as new defects yesterday (I have not reviewed them):