diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-01-09 20:02:40 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-01-09 20:02:01 +0000 |
commit | 41e93ead25c0c316c1f4575ec7c0678a75bff697 (patch) | |
tree | 4e083d74776748ae51ac62edeeaf779cdadb0c5e /tools | |
parent | 859e1ee1d5926b4ab878ac5dceaba14e303b58de (diff) | |
download | wireshark-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-x | tools/checkAPIs.pl | 2 |
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; } |