Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7126ce1

Browse files
committed
Fuzzing: Gracefully Handle Uninteresting Error to Fix OSS-Fuzz Issue 71095
Fuzzing data can generate filenames that trigger:> OSError: [Errno 36] File name too longThe changes here add handling for these exceptions because they di notindicate a bug and should not crash the fuzzer.a
1 parente57cc2c commit7126ce1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎fuzzing/fuzz-targets/fuzz_submodule.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def TestOneInput(data):
8484
exceptExceptionase:
8585
ifisinstance(e,ValueError)and"embedded null byte"instr(e):
8686
return-1
87+
elifisinstance(e,OSError)and"File name too long"instr(e):
88+
return-1
8789
else:
8890
returnhandle_exception(e)
8991

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp