scripts: fix oss-fuzz datasets corpus generator

As /dev/zero from SV test must be handled properly by this
script also...
pull/16522/head
Philippe Antoine 19 hours ago
parent 9a37bb659b
commit 6a28ea25b5

@ -47,6 +47,8 @@ def maybe_load_dataset_bytes(rules_file: Path, argument: str) -> bytes:
dataset_name = match.group(2) dataset_name = match.group(2)
dataset_path = (rules_file.parent / dataset_name).resolve() dataset_path = (rules_file.parent / dataset_name).resolve()
if not dataset_path.is_file():
return b""
try: try:
return dataset_path.read_bytes() return dataset_path.read_bytes()
except OSError: except OSError:

Loading…
Cancel
Save