Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1eb774 commit 5437bd7Copy full SHA for 5437bd7
1 file changed
cpp/ql/test/experimental/query-tests/Security/CWE/CWE-570/semmle/tests/test.cpp
@@ -209,6 +209,6 @@ void bad_new_with_nonthrowing_call() {
209
210
void bad_new_catch_baseclass_of_bad_alloc() {
211
try {
212
- int* p = new(std::nothrow) int; // BAD [NOT DETECTED]
+ int* p = new(std::nothrow) int; // BAD
213
} catch(const std::exception&) { }
214
}
0 commit comments