File 0513-erts-Cuddle-asan_log_to_html.patch of Package erlang
From aba5ad67221bbdfbc54fb9a92e7f24eccd8e22a7 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Wed, 19 Oct 2022 16:26:16 +0200
Subject: [PATCH] erts: Cuddle asan_log_to_html
to be better at finding the end of an error report.
---
erts/emulator/asan/asan_logs_to_html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/erts/emulator/asan/asan_logs_to_html b/erts/emulator/asan/asan_logs_to_html
index 5eb24f9e93..89030e426e 100755
--- a/erts/emulator/asan/asan_logs_to_html
+++ b/erts/emulator/asan/asan_logs_to_html
@@ -152,8 +152,8 @@ match_loop(Out, Bin, RegEx0, LogAcc0, PrevEnd, Unmatched0, LM0) ->
%% ErrorReport
"(?:(==ERROR: AddressSanitizer:.*\n"
"(?:.*\n)+?)" % any lines (non-greedy)
- "(?:^(?:==|--)|\\z))" % stop at line beginning with == or --
- % or at end-of-string
+ "(?:^[=-]+$|\\z))" % stop at line consisting of only = or -
+ % or at end-of-string
"|"
%% Skipped
"(?:^[=-]+$)" % skip lines consisting only of = or -
--
2.35.3