From ec0a71a267a918e3f3fbcb085b95b685dcd11398 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 24 Nov 2025 11:38:00 +0100 Subject: [PATCH] fixup repair memanalyze to find issues again --- tests/memanalyze.pl | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/memanalyze.pl b/tests/memanalyze.pl index be44650f0b..5569c6319f 100755 --- a/tests/memanalyze.pl +++ b/tests/memanalyze.pl @@ -153,14 +153,20 @@ while(<$fileh>) { } elsif($line =~ /^LIMIT ([^ ]*):(\d*) (.*)/) { # new memory limit test prefix - my $i = $3; - my ($source, $linenum) = ($1, $2); + my ($source, $linenum, $i) = ($1, $2, $3); if($i =~ /([^ ]*) reached memlimit/) { if($trace) { print "LIMIT: $1 returned error at $source:$linenum\n"; } - if($strict && !$overlook{$source, $linenum}) { - $memwarn++; + if(!$overlook{$source, $linenum}) { + if($strict) { + # make next occurance cause problem + $memwarn++; + } + elsif($memwarn) { + print "ERROR: Previously ignored OOM\n"; + print "ERROR: here $source:$linenum\n"; + } } } }