mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 23:21:22 +03:00
fuzz: tighten acceptable data size
Fixes oss-fuzz#51887 (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=51887). Fixes #24833.
This commit is contained in:
parent
f8151a707c
commit
c5654483dc
@ -13,7 +13,7 @@ static char16_t *memdup_str16(const uint8_t *data, size_t size) {
|
||||
}
|
||||
|
||||
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
if (outside_size_range(size, sizeof(size_t), 1024 * 1024))
|
||||
if (outside_size_range(size, sizeof(size_t), 64 * 1024))
|
||||
return 0;
|
||||
|
||||
size_t len, len2;
|
||||
|
Loading…
Reference in New Issue
Block a user