Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle out-of-range Patch.order #323

Merged
merged 1 commit into from
Jan 17, 2019

Conversation

baconpaul
Copy link
Collaborator

One patch - init - has a category and id which isn't in range. Others may.
This results in +/_ browser sometimes going out of range on
an array and segfaulting. So be defensive in our beyond-the-edge
checkes. Addresses #319

One patch - init - has a category and id  which isn't in range. Others may.
This results in +/_ browser sometimes going out of range on
an array and segfaulting. So be defensive in our beyond-the-edge
checkes. Addresses surge-synthesizer#319
@itsmedavep
Copy link
Contributor

I took a look at this and it seems to be OK now.

Steps to attempt repro:

Load up AU
Right click patchbrowser<--Init <--Cycled through all patches in the Init category using -/+ buttons
No crash

crash-fix

@baconpaul baconpaul merged commit cb73cff into surge-synthesizer:master Jan 17, 2019
@baconpaul baconpaul deleted the init-range-crash-319 branch January 18, 2019 22:23
baconpaul added a commit to baconpaul/surge that referenced this pull request Jul 10, 2019
…ash-319

Handle out-of-range Patch.order

Former-commit-id: df357958b49579768463270518cb2b479217563a [formerly cb73cff]
Former-commit-id: 649c1a9f14b0300af5ec32a6fa6cea1cfaa8e59d
Former-commit-id: c5058b9209709ffe404d32431c3e4ecb4d801e19
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