Skip to content

Fix crash in Canutils Log Reader when parsing RTR frames #713

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

Conversation

koberbe
Copy link

@koberbe koberbe commented Oct 23, 2019

Variable dataBin in CanutilsLogReader was not defined before it was accessed when reading remote frames.

@codecov
Copy link

codecov bot commented Oct 23, 2019

Codecov Report

Merging #713 into develop will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #713      +/-   ##
===========================================
+ Coverage    68.37%   68.38%   +<.01%     
===========================================
  Files           69       69              
  Lines         6201     6202       +1     
===========================================
+ Hits          4240     4241       +1     
  Misses        1961     1961

Copy link
Collaborator

@karlding karlding left a comment

Choose a reason for hiding this comment

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

LGTM

@karlding
Copy link
Collaborator

Thanks for the fix! I guess this is indicative of how many people use RTR frames, since it's been present for over a year 😂

@hardbyte we probably will want to backport this to a 3.x.x series release?

@karlding karlding changed the title Initialized dataBin in canutils with None to prevent crashes when reading remote frames Fix crash in Canutils Log Reader when parsing RTR frames Oct 24, 2019
@karlding karlding added bug file-io about reading & writing to files labels Oct 24, 2019
@hardbyte
Copy link
Owner

Yeah it would be good to backport.

@hardbyte hardbyte merged commit 216ed73 into hardbyte:develop Oct 24, 2019
hardbyte added a commit that referenced this pull request Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug file-io about reading & writing to files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants