[compiler-rt] [libfuzzer] Clarify -max_len behavior on bigger files (PR #123095)

Paweł Bylica via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 09:43:59 PST 2025


https://github.com/chfast created https://github.com/llvm/llvm-project/pull/123095

None

>From 9c5766ed95b1acd301dfea06da020228bef9dbb7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20Bylica?= <pawel at ethereum.org>
Date: Wed, 15 Jan 2025 16:07:08 +0100
Subject: [PATCH] [libfuzzer] Clarify -max_len behavior on bigger files

---
 compiler-rt/lib/fuzzer/FuzzerFlags.def | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/lib/fuzzer/FuzzerFlags.def b/compiler-rt/lib/fuzzer/FuzzerFlags.def
index fc3b3aa8c98ad5..b88458a497404c 100644
--- a/compiler-rt/lib/fuzzer/FuzzerFlags.def
+++ b/compiler-rt/lib/fuzzer/FuzzerFlags.def
@@ -14,8 +14,9 @@ FUZZER_FLAG_UNSIGNED(seed, 0, "Random seed. If 0, seed is generated.")
 FUZZER_FLAG_INT(runs, -1,
             "Number of individual test runs (-1 for infinite runs).")
 FUZZER_FLAG_INT(max_len, 0, "Maximum length of the test input. "
-    "If 0, libFuzzer tries to guess a good value based on the corpus "
-    "and reports it. ")
+  "Contents of corpus files are going to be truncated to this value. "
+  "If 0, libFuzzer tries to guess a good value based on the corpus "
+  "and reports it.")
 FUZZER_FLAG_INT(len_control, 100, "Try generating small inputs first, "
   "then try larger inputs over time.  Specifies the rate at which the length "
   "limit is increased (smaller == faster).  If 0, immediately try inputs with "



More information about the llvm-commits mailing list