mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
Dynamic (#77)
This commit is contained in:
parent
55247b7fcd
commit
991c84a1eb
1464 changed files with 225448 additions and 1985 deletions
|
|
@ -0,0 +1,4 @@
|
|||
FROM python:3.11-slim@sha256:9a7765b36773a37061455b332f18e265e7f58f6fea9c419a550d2a8b0e9db834
|
||||
WORKDIR /harness
|
||||
COPY harness.py .
|
||||
CMD ["python3", "harness.py"]
|
||||
21
tests/repro_fixtures/python-3.11/repro/harness/harness.py
Normal file
21
tests/repro_fixtures/python-3.11/repro/harness/harness.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def main() -> int:
|
||||
payload = os.environ.get('NYX_PAYLOAD', '')
|
||||
if not payload:
|
||||
sys.stderr.write('error: NYX_PAYLOAD missing\n')
|
||||
return 2
|
||||
try:
|
||||
result = eval(payload) # noqa: S307 sink under sandbox
|
||||
except Exception as exc: # noqa: BLE001
|
||||
sys.stderr.write(f'__NYX_SINK_ERROR__ {type(exc).__name__}: {exc}\n')
|
||||
return 1
|
||||
sys.stdout.write('__NYX_SINK_HIT__\n')
|
||||
sys.stdout.write(f'eval-result={result}\n')
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
Loading…
Add table
Add a link
Reference in a new issue