1
1
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:
Yu Watanabe 2019-05-16 12:35:10 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 9725f1a10f
commit 8688c29b5a
2 changed files with 2 additions and 1 deletions

View File

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

Binary file not shown.