mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
[CPP-418] Update references to BuiltInOperationBuiltInOffsetOf and __builtin_offsetof.
This commit is contained in:
committed by
Geoffrey White
parent
6eac51dba4
commit
faf4342d8e
@@ -44,7 +44,7 @@ predicate memberMayBeVarSize(Class c, MemberVariable v) {
|
||||
aoe.getAddressable() = v
|
||||
)
|
||||
or
|
||||
exists(BuiltInOperationOffsetOf oo |
|
||||
exists(BuiltInOperationBuiltInOffsetOf oo |
|
||||
// `offsetof(c, v)` using a builtin
|
||||
oo.getAChild().(VariableAccess).getTarget() = v
|
||||
)
|
||||
|
||||
@@ -132,7 +132,7 @@ private predicate excludeNodeAndNodesBelow(Expr e) {
|
||||
* control flow in them.
|
||||
*/
|
||||
private predicate excludeNodesStrictlyBelow(Node n) {
|
||||
n instanceof BuiltInOperationOffsetOf
|
||||
n instanceof BuiltInOperationBuiltInOffsetOf
|
||||
or
|
||||
n instanceof BuiltInIntAddr
|
||||
or
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
| edg.c:12:14:12:51 | (int)... | 0 | 0 |
|
||||
| edg.c:12:14:12:51 | __offsetof | 1 | 1 |
|
||||
| edg.c:12:14:12:51 | __builtin_offsetof | 1 | 1 |
|
||||
| edg.c:12:49:12:50 | f2 | 0 | 0 |
|
||||
| edg.c:13:14:13:45 | 0 | 0 | 0 |
|
||||
| edg.c:13:14:13:45 | & ... | 0 | 0 |
|
||||
|
||||
Reference in New Issue
Block a user