Skip to content

Commit 20fc64c

Browse files
committed
Python: Prevent bad magic in one predicate.
1 parent 1c51c34 commit 20fc64c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/ql/src/semmle/python/objects/Constants.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ abstract class ConstantObjectInternal extends ObjectInternal {
7878

7979
}
8080

81+
pragma[nomagic]
8182
private boolean callToBool(CallNode call, PointsToContext context) {
8283
PointsToInternal::pointsTo(call.getFunction(), context, ClassValue::bool(), _) and
8384
exists(ObjectInternal arg |

0 commit comments

Comments
 (0)