1
0
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:
Yu Watanabe 2022-09-28 13:42:01 +09:00 committed by Jan Janssen
parent f8151a707c
commit c5654483dc

View File

@ -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;