Skip to content

Commit 3289621

Browse files
committed
Convert MSC51-CPP to the new dataflow library
1 parent 8fdea49 commit 3289621

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cpp/cert/src/rules/MSC51-CPP/BadlySeededRandomNumberGenerator.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.cpp.cert
2222
import codingstandards.cpp.standardlibrary.Random
23-
import semmle.code.cpp.dataflow.TaintTracking
23+
import semmle.code.cpp.dataflow.new.TaintTracking
2424

2525
from RandomNumberEngineCreation createRandomNumberEngine, string seedSource
2626
where

cpp/cert/test/rules/MSC51-CPP/BadlySeededRandomNumberGenerator.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
WARNING: module 'TaintTracking' has been deprecated and may be removed in future (BadlySeededRandomNumberGenerator.ql:42,7-20)
21
| test.cpp:9:33:9:33 | call to linear_congruential_engine | Random number generator linear_congruential_engine is default-initialized and is therefore not properly seeded. |
32
| test.cpp:10:30:10:31 | call to linear_congruential_engine | Random number generator linear_congruential_engine is default-initialized and is therefore not properly seeded. |
43
| test.cpp:11:21:11:22 | call to linear_congruential_engine | Random number generator linear_congruential_engine is default-initialized and is therefore not properly seeded. |

0 commit comments

Comments
 (0)