Skip to content

Commit 8e0f354

Browse files
MathiasVPjketema
andauthored
Update cpp/ql/src/Likely Bugs/Memory Management/UsingExpiredStackAddress.cpp
Co-authored-by: Jeroen Ketema <[email protected]>
1 parent 862ebef commit 8e0f354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Likely Bugs/Memory Management/UsingExpiredStackAddress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ void localAddressDoesNotEscape() {
2020
}
2121

2222
void example2() {
23-
localAddressEscapes();
23+
localAddressDoesNotEscape();
2424
const int* x = xptr; // GOOD: This pointer does not point to expired memory.
2525
}

0 commit comments

Comments
 (0)