summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2016-01-09 20:02:40 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-01-09 20:02:01 +0000
commit41e93ead25c0c316c1f4575ec7c0678a75bff697 (patch)
tree4e083d74776748ae51ac62edeeaf779cdadb0c5e /tools
parent859e1ee1d5926b4ab878ac5dceaba14e303b58de (diff)
downloadwireshark-41e93ead25c0c316c1f4575ec7c0678a75bff697.tar.gz
checkAPIs: remove false positive in shadow check
" strlen (" would match the shadow regex due to backtracking. Disable backtracking with the "possessive quantifier". Change-Id: If5d307fd61f252c41ad6d9b6104d2add1dfa63ae Reviewed-on: https://code.wireshark.org/review/13157 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkAPIs.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index 1fff105c12..3ac14344f1 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -1392,7 +1392,7 @@ sub checkShadowVariable($$$)
for my $api ( @{$groupHashRef} )
{
my $cnt = 0;
- while (${$fileContentsRef} =~ m/ \s $api \s* [^\(\w] /gx)
+ while (${$fileContentsRef} =~ m/ \s $api \s*+ [^\(\w] /gx)
{
$cnt += 1;
}