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

[report-converter][fix] Don't crash when we can't find the checker name for ubsan #4143

Merged

Conversation

Szelethus
Copy link
Collaborator

We forgot to inizialize checker_name to its default value, which lead to a read-before-assignment crash.

…me for ubsan

We forgot to inizialize `checker_name` to its default value, which lead
to a read-before-assignment crash.
Comment on lines +10 to +11
<key>check_name</key>
<string>UndefinedBehaviorSanitizer</string>
Copy link
Member

Choose a reason for hiding this comment

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

How can this be that, if it was supposedly initialised to None?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The idea is that when checker_name is None, we fall back to a default checker name later down the road, which is the name of the sanitizer.

@bruntib bruntib merged commit 2c0df68 into Ericsson:master Jan 4, 2024
8 checks passed
@whisperity whisperity modified the milestones: release 6.23.2, release 6.24.0 Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants