Skip to content

[HSC] If song[] contains invalid data, ensure that we do not use the index provided into pattern[] which is always 50 long.#239

Merged
dynamite1981 merged 1 commit into
adplug:masterfrom
mywave82:hsc-fix
Dec 26, 2024
Merged

Conversation

@mywave82

Copy link
Copy Markdown
Contributor

Coverty gave warning about possible out-of-bound access into pattern[], due to pattnr not being sanitized after a jump instruction or if the very first entry is EOF.

…index provided into pattern[] which is always 50 long.
@dynamite1981 dynamite1981 merged commit d1d5307 into adplug:master Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants