diff options
-rw-r--r-- | util/cbfstool/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c index e87bc65bb3..dd675cac03 100644 --- a/util/cbfstool/common.c +++ b/util/cbfstool/common.c @@ -279,6 +279,7 @@ void *create_cbfs_file(const char *filename, void *data, uint32_t * datasize, headersize); exit(1); } + memset(newdata, 0xff, *datasize + headersize); struct cbfs_file *nextfile = (struct cbfs_file *)newdata; strncpy(nextfile->magic, "LARCHIVE", 8); nextfile->len = htonl(*datasize); |