mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Update cpp/ql/src/Likely Bugs/Memory Management/UsingExpiredStackAddress.cpp
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
862ebefbad
commit
8e0f354c2c
@@ -20,6 +20,6 @@ void localAddressDoesNotEscape() {
|
||||
}
|
||||
|
||||
void example2() {
|
||||
localAddressEscapes();
|
||||
localAddressDoesNotEscape();
|
||||
const int* x = xptr; // GOOD: This pointer does not point to expired memory.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user