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

msg-filter.cc: squash UBSAN reports that only differ in the address #152

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

lzaoral
Copy link
Member

@lzaoral lzaoral commented Dec 12, 2023

Resolves: #150

@lzaoral lzaoral requested a review from kdudka December 12, 2023 12:55
@lzaoral lzaoral self-assigned this Dec 12, 2023
@@ -156,6 +156,9 @@ MsgFilter::MsgFilter():

// used by IDENTIFIER_TYPO (but applies generally)
d->addMsgFilter("", "at least [0-9][0-9]* times.$");

// squash UBSAN reports that only differ in the address
d->addMsgFilter("UBSAN_WARNING", "0x[[:xdigit:]]+");
Copy link
Member

Choose a reason for hiding this comment

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

It might be safer to use a more specific regex, e.g. prepend the address prefix. But this can be tweaked later as the support for ubsan is still experimental.

@lzaoral lzaoral merged commit 941ad1a into csutils:main Jan 3, 2024
29 checks passed
@lzaoral lzaoral deleted the deduplicate-ubsan-address branch January 3, 2024 09:22
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.

Do better at UBSAN warning deduplication
2 participants