We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42b8f92 commit 95e65deCopy full SHA for 95e65de
cpp/ql/src/experimental/Security/CWE/CWE-570/IncorrectAllocationErrorHandling.ql
@@ -139,7 +139,8 @@ class BadAllocType extends Class {
139
*/
140
class BadAllocCatchBlock extends CatchBlock {
141
BadAllocCatchBlock() {
142
- this.getParameter().getUnspecifiedType() = any(BadAllocType badAlloc).getADerivedClass*()
+ this.getParameter().getUnspecifiedType().stripType() =
143
+ any(BadAllocType badAlloc).getADerivedClass*()
144
or
145
not exists(this.getParameter())
146
}
0 commit comments