mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
12 lines
327 B
Python
12 lines
327 B
Python
# without this, `eval("print(42)")` becomes invalid syntax in Python 2, since print is a
|
|
# statement
|
|
from __future__ import print_function
|
|
|
|
|
|
def eval(*args, **kwargs):
|
|
raise Exception("no eval")
|
|
|
|
|
|
# This function call might be marked as a code execution, but it actually isn't.
|
|
eval("print(42)") # $f+:getCode="print(42)"
|