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 <pe...@stuge.se> Acked-by: Stefan Reinauer <ste...@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); -- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot