From 2489ab887a86e8b1b253aef742e365a606db3a4f Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 3 Aug 2021 18:03:25 +0000 Subject: pkg/report: do more agressive NUM-replacement Replace not just long sequences of digits in report titles, but every sequence of '0'-'9' that is not surrounded by word characters. As such matches will overlap and Go does not (currently?) support regexp lookarounds, do the replacement multiple times until there is nothing more to do. This should not slow down syzkaller, since this code is only invoked during crash processing. Restrict LINE replacement only to fragments that have a preceeding file name. This prevents replacements like [1:2] -> [NUM:LINE]. --- pkg/report/testdata/fuchsia/report/23 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/report/testdata/fuchsia') diff --git a/pkg/report/testdata/fuchsia/report/23 b/pkg/report/testdata/fuchsia/report/23 index c988f3cae..0b8731848 100644 --- a/pkg/report/testdata/fuchsia/report/23 +++ b/pkg/report/testdata/fuchsia/report/23 @@ -1,4 +1,4 @@ -TITLE: ASSERT FAILED: thread_resched_disable_count() > 0 +TITLE: ASSERT FAILED: thread_resched_disable_count() > NUM ZIRCON KERNEL PANIC panic (caller 0xffffffff00150518 frame 0xffffff953a957d50): DEBUG ASSERT FAILED at (kernel/include/kernel/thread.h:452): thread -- cgit mrf-deployment