Skip to content

[JBM] Protect op_table[] being accessed out of range in set_opl_instrument() and update() + Fix a Visual Studio 12 warning#233

Merged
mywave82 merged 2 commits into
adplug:masterfrom
mywave82:jbm-channel-range
Aug 7, 2024
Merged

[JBM] Protect op_table[] being accessed out of range in set_opl_instrument() and update() + Fix a Visual Studio 12 warning#233
mywave82 merged 2 commits into
adplug:masterfrom
mywave82:jbm-channel-range

Conversation

@mywave82

@mywave82 mywave82 commented Aug 5, 2024

Copy link
Copy Markdown
Contributor

Coverity detected that the loop iterates up to 11, since there can be rhythm instruments, but it does not guard the calling of set_opl_instrument for non-rhythm songs.

@mywave82 mywave82 force-pushed the jbm-channel-range branch from 3612450 to 72b7034 Compare August 5, 2024 19:44
@mywave82 mywave82 changed the title [JBM] Protect against channel parameter being out of range in set_opl_instrument(). [JBM] Protect op_table[] being accessed out of range in set_opl_instrument() and update() + Fix a Visual Studio 12 warning Aug 5, 2024
@mywave82 mywave82 merged commit f7966cf into adplug:master Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants