You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix false negative issues related to the library structure of smart pointers.
This commit makes the following changes:
* Update `memory` stubs to move more functions to the __shared_ptr base class
* Add dataflow summaries for smart pointer constructor calls and smart
pointer get calls.
* Add sanitizers to prevent flow into library code for the dataflow summaries
added above.
Copy file name to clipboardExpand all lines: cpp/common/src/codingstandards/cpp/rules/ownedpointervaluestoredinunrelatedsmartpointer/OwnedPointerValueStoredInUnrelatedSmartPointer.qll
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,34 @@ private class PointerToSmartPointerConstructorFlowConfig extends TaintTracking::
Copy file name to clipboardExpand all lines: cpp/common/test/rules/ownedpointervaluestoredinunrelatedsmartpointer/OwnedPointerValueStoredInUnrelatedSmartPointer.expected
-17Lines changed: 0 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -6,29 +6,18 @@ problems
6
6
| test.cpp:12:28:12:29 | v2 | test.cpp:10:8:10:17 | new | test.cpp:12:28:12:29 | v2 | Raw pointer flows to initialize multiple unrelated smart pointers. |
7
7
| test.cpp:17:27:17:28 | v1 | test.cpp:16:13:16:22 | new | test.cpp:17:27:17:28 | v1 | Raw pointer flows to initialize multiple unrelated smart pointers. |
0 commit comments