We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47e5738 commit c2283f6Copy full SHA for c2283f6
fuzzing/fuzz-targets/fuzz_config.py
@@ -35,7 +35,7 @@ def TestOneInput(data):
35
except (MissingSectionHeaderError, ParsingError, UnicodeDecodeError):
36
return -1 # Reject inputs raising expected exceptions
37
except ValueError as e:
38
- if isinstance(e, ValueError) and "embedded null byte" in str(e):
+ if "embedded null byte" in str(e):
39
# The `os.path.expanduser` function, which does not accept strings
40
# containing null bytes might raise this.
41
return -1
0 commit comments