]> git.ipfire.org Git - thirdparty/curl.git/commit
checksrc: fix possible endless loops/errors in the banned function logic
authorViktor Szakats <commit@vsz.me>
Sat, 4 Oct 2025 11:04:29 +0000 (13:04 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 4 Oct 2025 15:49:21 +0000 (17:49 +0200)
commitc7fb5858a59dfc433d5eefa08be3db249738fd28
tree6bed23ece4036581dff3c8e18a92bca5b24a655c
parent455d41d4605a3d7aacc97fd580a64648ca203698
checksrc: fix possible endless loops/errors in the banned function logic

By quoting the search expression to be replaced. This avoid the issue
when the code leading up to a banned function contained regex characters
that the script did not explicitly handle, e.g. `+`.

Assisted-by: Daniel Stenberg
Ref: https://perldoc.perl.org/functions/quotemeta
Follow-up to dd37d6970cfd8b4cf47ebd469f03772813b92c23 #18775

Closes #18845
scripts/checksrc.pl