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.
2 parents 83fd9c3 + 57e026d commit 08b1c54Copy full SHA for 08b1c54
cpp/ql/src/Likely Bugs/Memory Management/ReturnStackAllocatedMemory.ql
@@ -18,7 +18,7 @@ import semmle.code.cpp.ir.IR
18
import semmle.code.cpp.ir.dataflow.MustFlow
19
import PathGraph
20
21
-/** Holds if `f` has a name that we intrepret as evidence of intentionally returning the value of the stack pointer. */
+/** Holds if `f` has a name that we interpret as evidence of intentionally returning the value of the stack pointer. */
22
predicate intentionallyReturnsStackPointer(Function f) {
23
f.getName().toLowerCase().matches(["%stack%", "%sp%"])
24
}
0 commit comments