Skip to content

Commit 15b9143

Browse files
committed
Convert ERR33-C to use the new dataflow library
1 parent 43c96a7 commit 15b9143

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

c/cert/src/rules/ERR33-C/DetectAndHandleStandardLibraryErrors.ql

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

2525
ComparisonOperation getAValidComparison(string spec) {
2626
spec = "=0" and result.(EqualityOperation).getAnOperand().getValue() = "0"

c/cert/test/rules/ERR33-C/DetectAndHandleStandardLibraryErrors.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
WARNING: module 'DataFlow' has been deprecated and may be removed in future (DetectAndHandleStandardLibraryErrors.ql:459,5-13)
21
| test.c:18:3:18:11 | call to setlocale | Missing error detection for the call to function `setlocale`. |
32
| test.c:24:23:24:31 | call to setlocale | Missing error detection for the call to function `setlocale`. |
43
| test.c:29:22:29:27 | call to calloc | Missing error detection for the call to function `calloc`. |

0 commit comments

Comments
 (0)