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 2b4296f commit f94a7fcCopy full SHA for f94a7fc
1 file changed
cpp/ql/src/experimental/Security/CWE/CWE-401/MemoryLeakOnFailedCallToRealloc.ql
@@ -36,7 +36,7 @@ class ReallocCallLeak extends FunctionCall {
36
37
ReallocCallLeak() {
38
exists(AssignExpr ex |
39
- this.getTarget().hasGlobalOrStdName("realloc") and
+ this.getTarget().hasGlobalOrStdName("realloc") and
40
this = ex.getRValue() and
41
hashCons(ex.getLValue()) = hashCons(this.getArgument(0)) and
42
v.getAnAccess() = this.getArgument(0)
0 commit comments