From 08914961dae370fcd0eb58a3bd1cc187adb545f3 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Thu, 17 Aug 2023 11:39:09 +1200 Subject: [PATCH] Tighten up ubsan suppressions The pattern is a substring match by default, so anchor it at the end. --- xapian-applications/omega/ubsan.supp | 5 +++-- xapian-core/tests/ubsan.supp | 2 +- xapian-letor/tests/ubsan.supp | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/xapian-applications/omega/ubsan.supp b/xapian-applications/omega/ubsan.supp index b2f864079..c3bbe63de 100644 --- a/xapian-applications/omega/ubsan.supp +++ b/xapian-applications/omega/ubsan.supp @@ -1,2 +1,3 @@ -unsigned-integer-overflow:basic_string.h -unsigned-integer-overflow:bits/random.tcc +unsigned-integer-overflow:basic_string.h$ + +unsigned-integer-overflow:bits/random.tcc$ diff --git a/xapian-core/tests/ubsan.supp b/xapian-core/tests/ubsan.supp index a4608bf21..fd7a87dd5 100644 --- a/xapian-core/tests/ubsan.supp +++ b/xapian-core/tests/ubsan.supp @@ -1 +1 @@ -unsigned-integer-overflow:basic_string.h +unsigned-integer-overflow:basic_string.h$ diff --git a/xapian-letor/tests/ubsan.supp b/xapian-letor/tests/ubsan.supp index a4608bf21..fd7a87dd5 100644 --- a/xapian-letor/tests/ubsan.supp +++ b/xapian-letor/tests/ubsan.supp @@ -1 +1 @@ -unsigned-integer-overflow:basic_string.h +unsigned-integer-overflow:basic_string.h$ -- 2.11.4.GIT