Skip to content

Commit ec7adb3

Browse files
committed
Refactor imports to use the updated DataFlow module in CleanUpThreadSpecificStorage and AccessOfUndefinedMemberThroughUninitializedStaticPointer
1 parent a568bf4 commit ec7adb3

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

c/cert/src/rules/CON30-C/CleanUpThreadSpecificStorage.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.Concurrency
23-
import semmle.code.cpp.dataflow.new.DataFlow
23+
import semmle.code.cpp.dataflow.DataFlow
2424

2525
module TssCreateToTssDeleteConfig implements DataFlow::ConfigSig {
2626
predicate isSource(DataFlow::Node node) {

c/cert/test/rules/CON30-C/CleanUpThreadSpecificStorage.expected

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CleanUpThreadSpecificStorage.ql:25,46-54)
2+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CleanUpThreadSpecificStorage.ql:26,22-30)
3+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CleanUpThreadSpecificStorage.ql:35,20-28)
4+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CleanUpThreadSpecificStorage.ql:45,35-43)
5+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CleanUpThreadSpecificStorage.ql:53,36-44)
6+
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CleanUpThreadSpecificStorage.ql:55,36-44)
17
| test.c:27:3:27:12 | call to tss_create | Resources used by thread specific storage may not be cleaned up. |
28
| test.c:49:3:49:12 | call to tss_create | Resources used by thread specific storage may not be cleaned up. |
39
| test.c:71:3:71:12 | call to tss_create | Resources used by thread specific storage may not be cleaned up. |

cpp/common/src/codingstandards/cpp/rules/accessofundefinedmemberthroughuninitializedstaticpointer/AccessOfUndefinedMemberThroughUninitializedStaticPointer.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
import cpp
15-
import semmle.code.cpp.dataflow.new.DataFlow
15+
import semmle.code.cpp.dataflow.DataFlow
1616
import codingstandards.cpp.Customizations
1717
import codingstandards.cpp.Exclusions
1818
import codingstandards.cpp.EncapsulatingFunctions

0 commit comments

Comments
 (0)