From 0416d548c59845de2816e33a4480f0da5614afec Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 5 Sep 2007 02:05:55 +0000 Subject: [PATCH] this patch returns if someone tries to execute in place a compressed entry. Signed-off-by: Alex Beregszaszi Acked-by: Stefan Reinauer git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@492 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- lib/lar.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/lar.c b/lib/lar.c index c26f58781e..3d0cb006ad 100644 --- a/lib/lar.c +++ b/lib/lar.c @@ -251,6 +251,13 @@ int run_file(struct mem_file *archive, const char *filename, void *where) filename); return 1; } + if (result.compression != 0) { + printk(BIOS_INFO, + "LAR: Run file %s failed: Compressed file" + " not supported for in-place execution\n", + filename); + return 1; + } where = result.start; } printk(BIOS_SPEW, "where is %p\n", where);