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

Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2022-02-23 09:33:58 +00:00
committed by GitHub
parent dda85bf234
commit 862ebefbad

View File

@@ -219,7 +219,7 @@ where
// We know that we have a sequence:
// (1) store to `address` -> (2) return from `f` -> (3) load from `address`.
// But if (2) and (3) happen in the sam block we need to check the
// block indices to nsure that (3) happens after (2).
// block indices to ensure that (3) happens after (2).
if isCallBlock = true
then
// If so, the load must happen after the call.