File 0687-Fix-asan_logs_to_html-regex.patch of Package erlang
From 2de33b8258e4989344de6dfb592d4e30237207ae Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Mon, 4 Oct 2021 23:37:22 +0200
Subject: [PATCH] Fix asan_logs_to_html regex
when a file ends with an ErrorReport.
---
erts/emulator/asan/asan_logs_to_html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/erts/emulator/asan/asan_logs_to_html b/erts/emulator/asan/asan_logs_to_html
index 14c9b7fcde..fad5ce7137 100755
--- a/erts/emulator/asan/asan_logs_to_html
+++ b/erts/emulator/asan/asan_logs_to_html
@@ -152,7 +152,8 @@ match_loop(Out, Bin, RegEx0, LogAcc0, PrevEnd, Unmatched0, LM0) ->
%% ErrorReport
"(?:(==ERROR: AddressSanitizer:.*\n"
"(?:.*\n)+?)" % any lines (non-greedy)
- "^(?:==|--))" % stop at line begining with == or --
+ "(?:^(?:==|--)|\\z))" % stop at line begining with == or --
+ % or at end-of-string
"|"
%% Skipped
"(?:^[=-]+$)" % skip lines consisting only of = or -
--
2.31.1