mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
varlink: initialize Varlink with 0
Closes oss-fuzz#14688.
This commit is contained in:
parent
9725f1a10f
commit
8688c29b5a
@ -246,7 +246,8 @@ static int varlink_new(Varlink **ret) {
|
||||
|
||||
assert(ret);
|
||||
|
||||
v = new(Varlink, 1);
|
||||
/* Here use new0 as the below structured initializer is nested. */
|
||||
v = new0(Varlink, 1);
|
||||
if (!v)
|
||||
return -ENOMEM;
|
||||
|
||||
|
BIN
test/fuzz/fuzz-varlink/oss-fuzz-14688
Normal file
BIN
test/fuzz/fuzz-varlink/oss-fuzz-14688
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user