diff options
author | Warner Losh <imp@FreeBSD.org> | 2012-07-24 02:58:10 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2012-07-24 02:58:10 +0000 |
commit | bae61446cfa6a4b67c0197a6c7535190b80c8a3d (patch) | |
tree | 0adf736d61fa3f379fec96cd67783a6029af264e /tests/open_pack.c | |
parent | b7b62f41399c6bc3ef3f9583dbc35cbd0a28101f (diff) |
Notes
Diffstat (limited to 'tests/open_pack.c')
-rw-r--r-- | tests/open_pack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/open_pack.c b/tests/open_pack.c index d6140249c054..0a5a3fcc8392 100644 --- a/tests/open_pack.c +++ b/tests/open_pack.c @@ -48,6 +48,8 @@ int main(int argc, char *argv[]) bufsize = oldsize * 2; buf = xmalloc(bufsize); + /* don't leak uninitialized memory into our output */ + memset(buf, 0, bufsize); fdt1 = buf; err = fdt_open_into(fdt, fdt1, bufsize); |