Files
codeql/python/ql/test/library-tests/PointsTo/api/Constants.ql

21 lines
368 B
Plaintext

import python
from string txt, Value val
where
exists(string s |
txt = "u'" + s + "'" and val = Value::forUnicode(s)
or
txt = "b'" + s + "'" and val = Value::forBytes(s)
|
s = "a" or s = "b" or s = "c" or s = "d"
)
or
exists(int i |
txt = i.toString() and val = Value::forInt(i)
|
i in [1..10] or i in [1000..1010]
)
select txt, val