[coreboot] [commit] r4975 - trunk/util/cbfstool
svn at coreboot.org
svn at coreboot.org
Sun Dec 6 13:14:39 CET 2009
Author: stuge
Date: 2009-12-06 13:14:39 +0100 (Sun, 06 Dec 2009)
New Revision: 4975
Modified:
trunk/util/cbfstool/common.c
Log:
cbfstool: Fill memory allocated in create_cbfs_file() with 0xff
This should improve programming speed a bit.
Signed-off-by: Peter Stuge <peter at stuge.se>
Acked-by: Stefan Reinauer <stepan at coresystems.de>
Modified: trunk/util/cbfstool/common.c
===================================================================
--- trunk/util/cbfstool/common.c 2009-12-02 21:11:12 UTC (rev 4974)
+++ trunk/util/cbfstool/common.c 2009-12-06 12:14:39 UTC (rev 4975)
@@ -279,6 +279,7 @@
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);
More information about the coreboot
mailing list