fuzzers: ignore size limits when compiled standalone
This way we can still call fuzzers on old samples, but oss-fuzz will not waste its and our time finding overly large inputs.
This commit is contained in:
@@ -11,7 +11,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
_cleanup_free_ void *p = NULL;
|
||||
|
||||
/* This limit was borrowed from src/boot/efi/boot.c */
|
||||
if (size > 100*1024)
|
||||
if (outside_size_range(size, 0, 100*1024))
|
||||
return 0;
|
||||
|
||||
if (!getenv("SYSTEMD_LOG_LEVEL"))
|
||||
|
||||
Reference in New Issue
Block a user