Skip to content

Commit 7ac2fc1

Browse files
authored
Merge pull request #46 from peterschrammel/fix-invalid-free
Fix deref vs free detection
2 parents 1b6da6b + 0c68e2d commit 7ac2fc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool-wrapper.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ parse_result()
5959
echo 'FALSE(valid-free)'
6060
elif tail -n 50 $LOG.ok | \
6161
grep -Eq "^(\[.*\] free argument has offset zero|[[:space:]]* free argument has offset zero$)" ; then
62-
if tail -n 50 $LOG.ok | grep -Eq "^[[:space:]]+[a-zA-Z0-9_]+=INVALID" ; then
62+
if tail -n 50 $LOG.ok | grep -Eq "^[[:space:]]+[a-zA-Z0-9_]+=INVALID-" ; then
6363
echo 'FALSE(valid-deref)'
6464
else
6565
echo 'FALSE(valid-free)'
6666
fi
6767
elif tail -n 50 $LOG.ok | \
6868
grep -Eq "^(\[.*\] |[[:space:]]*)free argument (is|must be) dynamic object" ; then
69-
if tail -n 50 $LOG.ok | grep -Eq "^[[:space:]]+[a-zA-Z0-9_]+=INVALID" ; then
69+
if tail -n 50 $LOG.ok | grep -Eq "^[[:space:]]+[a-zA-Z0-9_]+=INVALID-" ; then
7070
echo 'FALSE(valid-deref)'
7171
else
7272
echo 'FALSE(valid-free)'

0 commit comments

Comments
 (0)