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 FirmwareUpdater #722

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Conversation

esaulenka
Copy link
Contributor

I know that this module now is not used, but it still makes a few compiler warnings.

So, I found here 2 issues:

  • allocating CANFrame on a heap lead memory leaks
  • Qt made a bad design of QCanBusFrame, where payload() returns a copy of data instead of reference to it. So, I don't understand how you tested it, but populating of frame data is not working at all and even can cause memory overflow.

frame.payload() returns a copy (!) of data, so assignig to it has no effect
@collin80 collin80 merged commit e7fe84a into collin80:master Jan 26, 2024
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