Skip to content

Commit 2b6f700

Browse files
committed
Fix arrow-py fuzzing harness
1 parent bf7a166 commit 2b6f700

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

projects/arrow-py/fuzz_tzinfo.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ def TestOneInput(data):
2929
try:
3030
c1 = arrow.parser.TzinfoParser()
3131
c1.parse(tzinfo_string)
32-
except (arrow.parser.ParserError,):
32+
except (arrow.parser.ParserError, ValueError):
33+
# Some inputs may trigger ZoneInfo path validation which raises
34+
# ValueError (e.g. empty or malformed zone path). Treat these as
35+
# expected parse errors and ignore them to avoid false positives
36+
# during check_build.
3337
pass
3438

3539

0 commit comments

Comments
 (0)