Skip to content

Commit 7c7d6f6

Browse files
committed
Conver ARR32-C to use the new dataflow library
1 parent 405c43e commit 7c7d6f6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

c/cert/src/rules/ARR32-C/VariableLengthArraySizeNotInValidRange.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import cpp
2121
import codingstandards.c.cert
2222
import codingstandards.cpp.Overflow
23-
import semmle.code.cpp.dataflow.TaintTracking
23+
import semmle.code.cpp.dataflow.new.TaintTracking
2424

2525
/**
2626
* Gets the maximum size (in bytes) a variable-length array

c/cert/test/rules/ARR32-C/VariableLengthArraySizeNotInValidRange.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
WARNING: module 'DataFlow' has been deprecated and may be removed in future (VariableLengthArraySizeNotInValidRange.ql:110,11-19)
2-
WARNING: module 'TaintTracking' has been deprecated and may be removed in future (VariableLengthArraySizeNotInValidRange.ql:93,5-18)
31
| test.c:14:8:14:8 | VLA declaration | Variable-length array dimension size may be in an invalid range. |
42
| test.c:15:8:15:8 | VLA declaration | Variable-length array dimension size may be in an invalid range. |
53
| test.c:16:8:16:8 | VLA declaration | Variable-length array dimension size may be in an invalid range. |

0 commit comments

Comments
 (0)