Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 685826e

Browse files
committed
Python points-to: Prevent bad magic.
1 parent 8558cb3 commit 685826e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class ObjectInternal extends TObject {
9797
* for an object `x` the attribute `name` (`x.name`) may refer to a bound-method, an attribute of the
9898
* instance, or an attribute of the class.
9999
*/
100+
pragma [nomagic]
100101
abstract predicate attribute(string name, ObjectInternal value, CfgOrigin origin);
101102

102103
/** Holds if the attributes of this object are wholy or partly unknowable */

0 commit comments

Comments
 (0)