mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
21 lines
368 B
Plaintext
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
|