mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
C++: overlapping def/use must share IRVariable
This commit is contained in:
@@ -263,6 +263,7 @@ predicate hasUnknownOffset(VariableMemoryLocation vml, VirtualVariable vv) {
|
||||
|
||||
|
||||
Overlap getVariableMemoryLocationOverlap(VariableMemoryLocation def, VariableMemoryLocation use) {
|
||||
def.getVariable() = use.getVariable() and
|
||||
(
|
||||
exists(VirtualVariable vv, IntValue offset | isCoveredOffset(def, vv, offset) and isCoveredOffset(use, vv, offset))
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user