Skip to content

Commit da39c9f

Browse files
committed
C++: Fix bad magic.
1 parent 46c27dd commit da39c9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ predicate guardedAbs(Operation e, Expr use) {
2525
* Holds if the value of `use` is guarded to be less than something, and `e`
2626
* is in code controlled by that guard (where the guard condition held).
2727
*/
28+
pragma[nomagic]
2829
predicate guardedLesser(Operation e, Expr use) {
2930
exists(GuardCondition c | c.ensuresLt(use, _, _, e.getBasicBlock(), true))
3031
or
@@ -35,6 +36,7 @@ predicate guardedLesser(Operation e, Expr use) {
3536
* Holds if the value of `use` is guarded to be greater than something, and `e`
3637
* is in code controlled by that guard (where the guard condition held).
3738
*/
39+
pragma[nomagic]
3840
predicate guardedGreater(Operation e, Expr use) {
3941
exists(GuardCondition c | c.ensuresLt(use, _, _, e.getBasicBlock(), false))
4042
or

0 commit comments

Comments
 (0)