Skip to content

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

Merged
bruntib merged 1 commit into
Ericsson:masterfrom
Szelethus:dont_crash_on_unrecognized_checker_name
Jan 4, 2024
Merged

[report-converter][fix] Don't crash when we can't find the checker name for ubsan#4143
bruntib merged 1 commit into
Ericsson:masterfrom
Szelethus:dont_crash_on_unrecognized_checker_name

Conversation

@Szelethus
Copy link
Copy Markdown
Contributor

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.
@Szelethus Szelethus added this to the release 6.23.2 milestone Jan 2, 2024
Comment on lines +10 to +11
<key>check_name</key>
<string>UndefinedBehaviorSanitizer</string>
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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
@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.

3 participants