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

All boards can crash after upload w/ 4 7Segment #141

Merged
merged 4 commits into from
Jan 29, 2022

Conversation

elral
Copy link
Collaborator

@elral elral commented Jan 14, 2022

Fixes #140

Eexchange ledSegmentsRegistered by i in function ClearLedSegments().
Otherwise the ledSegments[] buffersize will be exceeded when 4 7Segments are configured

@github-actions
Copy link

Firmware for this pull request:
Firmware.zip

@neilenns
Copy link
Contributor

Nice find!

@github-actions
Copy link

Firmware for this pull request:
Firmware.zip

@github-actions
Copy link

Firmware for this pull request:
Firmware.zip

@elral
Copy link
Collaborator Author

elral commented Jan 24, 2022

Unfortunetly I missed one more buffer overflow, but now I should have find all of them.

First tests shows that it runs very stable now.

@elral
Copy link
Collaborator Author

elral commented Jan 24, 2022

Sorry, I forgot to mention, that this is not only an issue regarding a possible buffer overflow. This "only" happens if the max. number of a device is configured. Much more important is, the memory wasn't cleared up after a config upload if one or more devices from these 6 devices were configured.

But I still recommended to merge issue 127. The pull request is nearly done and more explanations will be icluded in the upcoming pull request.

Copy link
Collaborator

@DocMoebiuz DocMoebiuz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL!

Thanks for finding and fixing

@DocMoebiuz DocMoebiuz merged commit d0f5d8e into MobiFlight:main Jan 29, 2022
@elral elral deleted the elral/issue140 branch January 29, 2022 17:04
@DocMoebiuz DocMoebiuz added the bug Something isn't working label Mar 7, 2022
@DocMoebiuz DocMoebiuz modified the milestone: 2.1 Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mega/ProMicro/Uno can crash after upload if 4 7Segments are configured
3 participants