mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
C++: Addresses may escape through call qualifiers
Also clarify the docs on `Call` to decrease the likelyhood of such an omission happening again. The updated test reflects that `f1.operator()` lets the address of `f1` escape from the caller.
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
| addressOf.cpp:38:20:38:20 | i | non-const address |
|
||||
| addressOf.cpp:40:15:40:15 | i | non-const address |
|
||||
| addressOf.cpp:42:19:42:22 | iref | non-const address |
|
||||
| addressOf.cpp:48:3:48:4 | f1 | |
|
||||
| addressOf.cpp:48:3:48:4 | f1 | non-const address |
|
||||
| addressOf.cpp:49:15:49:22 | captured | non-const address |
|
||||
| addressOf.cpp:50:3:50:4 | f2 | |
|
||||
| addressOf.cpp:50:3:50:4 | f2 | non-const address |
|
||||
| addressOf.cpp:51:10:51:17 | captured | |
|
||||
| addressOf.cpp:56:16:56:16 | i | |
|
||||
| addressOf.cpp:56:19:56:19 | i | |
|
||||
|
||||
Reference in New Issue
Block a user