feature/remove-statics-from-parser-fuzzer #13

Merged
jturnerusa merged 4 commits from feature/remove-statics-from-parser-fuzzer into master 2025-12-14 19:42:50 -06:00
Showing only changes of commit a3ff953e50 - Show all commits

View File

@@ -2,12 +2,13 @@
import sys
from portage.dep import Atom
from portage.exception import InvalidAtom
for line in sys.stdin.buffer:
try:
Atom(line.decode().strip())
sys.stdout.buffer.write(b"0\n")
except:
except InvalidAtom:
sys.stdout.buffer.write(b"1\n")
finally:
sys.stdout.buffer.flush()