[coreboot] [v2] r4678 - trunk/coreboot-v2/util/cbfstool
svn at coreboot.org
svn at coreboot.org
Sat Sep 26 00:21:47 CEST 2009
Author: cristi
Date: 2009-09-26 00:21:47 +0200 (Sat, 26 Sep 2009)
New Revision: 4678
Modified:
trunk/coreboot-v2/util/cbfstool/cbfs-mkpayload.c
Log:
check for ELF payloads in cbfstool
Signed-off-by: Cristi Magherusan <cristi.magherusan at net.utcluj.ro>
Acked-by: Cristi Magherusan <cristi.magherusan at net.utcluj.ro>
Modified: trunk/coreboot-v2/util/cbfstool/cbfs-mkpayload.c
===================================================================
--- trunk/coreboot-v2/util/cbfstool/cbfs-mkpayload.c 2009-09-25 21:59:57 UTC (rev 4677)
+++ trunk/coreboot-v2/util/cbfstool/cbfs-mkpayload.c 2009-09-25 22:21:47 UTC (rev 4678)
@@ -48,6 +48,12 @@
struct cbfs_payload_segment *segs;
int i;
+ if(!iself(input)){
+ printf("Fatal error: the payload file is not in ELF format!\n");
+ exit(1);
+ }
+
+
comp_func_ptr compress = compression_function(algo);
if (!compress)
return -1;
More information about the coreboot
mailing list