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

fix(cpn): Fix the size of the YamlStickConfig struct in companion. #2891

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

philmoz
Copy link
Collaborator

@philmoz philmoz commented Dec 18, 2022

The YamlStickConfig definition was defined and sized with CPN_MAX_SWITCHES (32) instead of CPN_MAX_STICKS (4).
When loading radio.yml this would overwrite 112 bytes past the end of the stickName array in the GeneralSettings class.

@pfeerick pfeerick added bug 🪲 Something isn't working companion Related to the companion software labels Dec 19, 2022
@pfeerick
Copy link
Member

Ouch, nice catch! :)

@pfeerick pfeerick added this to the 2.8.1 milestone Dec 19, 2022
Copy link
Member

@raphaelcoeffic raphaelcoeffic left a comment

Choose a reason for hiding this comment

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

Nice catch!

@gagarinlg
Copy link
Member

Wow that was thdproblem some people had with strange stick names

@pfeerick pfeerick merged commit 2133d42 into EdgeTX:main Dec 19, 2022
mha1 pushed a commit to mha1/edgetx that referenced this pull request Dec 22, 2022
The YamlStickConfig definition was defined and sized with CPN_MAX_SWITCHES (32) instead of CPN_MAX_STICKS (4).
When loading radio.yml this would overwrite 112 bytes past the end of the stickName array in the GeneralSettings class.
pfeerick pushed a commit that referenced this pull request Dec 23, 2022
The YamlStickConfig definition was defined and sized with CPN_MAX_SWITCHES (32) instead of CPN_MAX_STICKS (4).
When loading radio.yml this would overwrite 112 bytes past the end of the stickName array in the GeneralSettings class.
@philmoz philmoz deleted the yamlswitchconfig-size branch September 20, 2023 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working companion Related to the companion software
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants