Updating to NonCppThrowingFunction use in IncorrectALlocationErrorHandling.ql

This commit is contained in:
REDMOND\brodes
2024-11-21 12:59:56 -05:00
parent 66cf736b4c
commit 37365c746c

View File

@@ -45,7 +45,7 @@ predicate deleteMayThrow(DeleteOrDeleteArrayExpr deleteExpr) {
* like it might throw an exception, and the function does not have a `noexcept` or `throw()` specifier.
*/
predicate functionMayThrow(Function f) {
not f instanceof NonThrowingFunction and
not f instanceof NonCppThrowingFunction and
(not exists(f.getBlock()) or stmtMayThrow(f.getBlock()))
}