add fuzzer

This commit is contained in:
John Turner
2025-11-16 20:17:35 +00:00
parent fdf1f09d6f
commit 7c404ca8c5
5 changed files with 95 additions and 2 deletions

13
scripts/atom.py Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env python3
import sys
import portage.dep as dep
input = sys.stdin.read().strip()
try:
dep.Atom(input)
except Exception as e:
sys.exit(1)
sys.exit(0)