Skip to content

Conversation

@earlephilhower
Copy link

When an OOM error happens when trying to allocate more slots for voices, tsf_note_on returned failure, properly, but it also didn't undo the increase in voiceNum (which didn't happen). This would cause an overflow/overwrite error on the next note_on call.

In most desktop systems this OOM isn't going to happen, but I'm using this on embedded CPUs with as little as 40KB of heap so there it does show up.

When an OOM error happens when trying to allocate more slots
for voices, tsf_note_on returned failure, properly, but it also
didn't undo the increase in voiceNum (which didn't happen).
This would cause an overflow/overwrite error on the next
note_on call.

In most desktop systems this OOM isn't going to happen, but
I'm using this on embedded CPUs with as little as 40KB of heap
so there it does show up.
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.

1 participant