← Commit list

dd37d6970c

Viktor Szakats
Viktor Szakats
2025-09-30
FAILED Duration: 157s

Subject

checksrc: fix possible endless loop when detecting `BANNEDFUNC`

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

scripts/checksrc.pl+2 -0
@@ -902,6 +902,8 @@ sub scanfile {
"use of $bad is banned");
my $replace = 'x' x (length($bad) + 1);
$prefix =~ s/\*/\\*/;
+ $prefix =~ s/\[/\\[/;
+ $prefix =~ s/\]/\\]/;
$suff =~ s/\(/\\(/;
$l =~ s/$prefix$bad$suff/$prefix$replace/;
goto again;