Skip to content

Commit

Permalink
msg-filter.cc: squash UBSAN reports that only differ in the address
Browse files Browse the repository at this point in the history
Resolves: #150
  • Loading branch information
lzaoral committed Jan 3, 2024
1 parent af14fe1 commit 941ad1a
Show file tree
Hide file tree
Showing 5 changed files with 649 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/msg-filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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:]]+");
}

MsgFilter::~MsgFilter() = default;
Expand Down
1 change: 1 addition & 0 deletions tests/csgrep/0118-gcc-parser-ubsan-dedup-args.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--remove-duplicates
Loading

0 comments on commit 941ad1a

Please sign in to comment.