1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

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

(cherry picked from commit f54f6d88b1235487eb7f0c634c488edc7813579a)
(cherry picked from commit f68be4fd79b63b8629b9fadb2894508f704f2bd0)
This commit is contained in:
Li kunyu 2022-11-18 06:03:41 +00:00 committed by Zbigniew Jędrzejewski-Szmek
parent 04d74c5090
commit 5e5cbc3daa

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