Skip to content

Commit 148c79a

Browse files
committed
C++: Deprecate RecursionPrevention
1 parent 9532ee5 commit 148c79a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

change-notes/1.19/analysis-cpp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@
4747
* The `Buffer.qll` library has more conservative treatment of arrays embedded in structs. This reduces false positives in a number of security queries, especially `cpp/overflow-buffer`.
4848
* Pre-C99 encodings of _flexible array members_ are recognized more reliably.
4949
* Arrays of zero size are now treated as a special case.
50+
* The library `semmle.code.cpp.dataflow.RecursionPrevention` is now deprecated. It was an aid for transitioning data-flow queries from 1.16 to 1.17, and it no longer has any function. Imports of this library should simply be deleted.

cpp/ql/src/semmle/code/cpp/dataflow/RecursionPrevention.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
/**
2+
* DEPRECATED: Recursion through `DataFlow::Configuration` is impossible in
3+
* Semmle Core 1.17 and above. There is no need for this module because it's
4+
* impossible to accidentally depend on recursion through
5+
* `DataFlow::Configuration` in current releases.
6+
*
27
* When this module is imported, recursive use of `DataFlow::Configuration` is
38
* disallowed. Importing this module will guarantee the absence of such
49
* recursion, which is unsupported and will be unconditionally disallowed in a

0 commit comments

Comments
 (0)