Skip to content

Commit 7fdac2a

Browse files
authored
Merge pull request github#6347 from MathiasVP/import-gvn-to-prevent-ir-reevaluation
C++: Import 'GVN' in 'Overflow.qll' to prevent IR reevaluation.
2 parents b8a40bb + 39144ee commit 7fdac2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/src/semmle/code/cpp/security/Overflow.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
import cpp
77
import semmle.code.cpp.controlflow.Dominance
8+
// `GlobalValueNumbering` is only imported to prevent IR re-evaluation.
9+
private import semmle.code.cpp.valuenumbering.GlobalValueNumbering
810
import semmle.code.cpp.rangeanalysis.SimpleRangeAnalysis
911
import semmle.code.cpp.rangeanalysis.RangeAnalysisUtils
1012

0 commit comments

Comments
 (0)