mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
C++: Address false positive results in template instantiations.
This commit is contained in:
@@ -175,7 +175,7 @@ template<typename F> F *test_template_platement_new() {
|
||||
char buffer[1024];
|
||||
|
||||
try {
|
||||
return new (buffer) F; // GOOD: `F` constructor might throw (when `F` is `Foo`) [FALSE POSITIVE]
|
||||
return new (buffer) F; // GOOD: `F` constructor might throw (when `F` is `Bar`)
|
||||
} catch (...) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user