From 7126ce16a03e0aea5ef4d031c62596992a6d7cb5 Mon Sep 17 00:00:00 2001 From: David Lakin Date: Tue, 13 Aug 2024 01:09:37 -0400 Subject: [PATCH] Fuzzing: Gracefully Handle Uninteresting Error to Fix OSS-Fuzz Issue 71095 Fuzzing data can generate filenames that trigger: > OSError: [Errno 36] File name too long The changes here add handling for these exceptions because they di not indicate a bug and should not crash the fuzzer. a --- fuzzing/fuzz-targets/fuzz_submodule.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fuzzing/fuzz-targets/fuzz_submodule.py b/fuzzing/fuzz-targets/fuzz_submodule.py index c2bf1e4fe..d22b0aa5b 100644 --- a/fuzzing/fuzz-targets/fuzz_submodule.py +++ b/fuzzing/fuzz-targets/fuzz_submodule.py @@ -84,6 +84,8 @@ def TestOneInput(data): except Exception as e: if isinstance(e, ValueError) and "embedded null byte" in str(e): return -1 + elif isinstance(e, OSError) and "File name too long" in str(e): + return -1 else: return handle_exception(e) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy