1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-28 21:47:38 +03:00

fuzz: fuzz-compress: fix copy-and-paste error: buf -> buf2 (#25431)

This commit is contained in:
Li kunyu 2022-11-18 06:03:41 +00:00 committed by GitHub
parent daefca4611
commit f54f6d88b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
size_t sw_alloc = MAX(h->sw_alloc, 1u);
buf2 = malloc(sw_alloc);
if (!buf) {
if (!buf2) {
log_oom();
return 0;
}