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

Fixes memory corruption from pointer to array on stack #2

Merged
merged 2 commits into from
Feb 21, 2017

Conversation

amiller27
Copy link
Contributor

This bug was seriously screwing with things, it allocates an array on the stack, saves a pointer to it, and continues to modify the location in memory after the function where the array was allocated has returned.

@amiller27
Copy link
Contributor Author

@PaulStoffregen Could this get merged? It's already been tested on a Teensy 3.1, and it fixes the mentioned bug

@amiller27
Copy link
Contributor Author

Ping

@PaulStoffregen PaulStoffregen merged commit e836aa7 into PaulStoffregen:master Feb 21, 2017
@PaulStoffregen
Copy link
Owner

Wow, this old library was a huge mess!

I've just made several more small fixes. I tested all the examples, but deleted the scroll_multi example which no longer works with the smaller buffer.

Can you please take a look? Maybe try with your hardware?

@amiller27
Copy link
Contributor Author

Thanks, I'll try to test it this week

@PaulStoffregen
Copy link
Owner

These recent changes broke the ability to connect multiple displays. Since it's documented on the Arduino Playground page, even with an image, I'm going to try restoring that functionality.

@PaulStoffregen
Copy link
Owner

Hopefully it's all working well. I feel pretty good about it, since I tested all the examples here with a couple different boards (both ARM & AVR).

I'm going to assume "no news is good news" on more issues....

@amiller27
Copy link
Contributor Author

Yeah I honestly haven't had time to run it on any hardware yet, but I looked at the changes and everything seemed good. If I notice any other issues I'll make another PR.

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.

None yet

2 participants