Skip to content

Commit 37365c7

Browse files
committed
Updating to NonCppThrowingFunction use in IncorrectALlocationErrorHandling.ql
1 parent 66cf736 commit 37365c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-570/IncorrectAllocationErrorHandling.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ predicate deleteMayThrow(DeleteOrDeleteArrayExpr deleteExpr) {
4545
* like it might throw an exception, and the function does not have a `noexcept` or `throw()` specifier.
4646
*/
4747
predicate functionMayThrow(Function f) {
48-
not f instanceof NonThrowingFunction and
48+
not f instanceof NonCppThrowingFunction and
4949
(not exists(f.getBlock()) or stmtMayThrow(f.getBlock()))
5050
}
5151

0 commit comments

Comments
 (0)