From 819366a97060d53a8a766ca16c81166497051c0b Mon Sep 17 00:00:00 2001 From: Martin Johnson Date: Thu, 9 Jun 2011 10:51:50 +1200 Subject: [PATCH] Fix for malloc of wrong size, (crashed if ramdisk larger than kernel) --- abootimg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abootimg.c b/abootimg.c index bf17cdc..fcc792c 100644 --- a/abootimg.c +++ b/abootimg.c @@ -801,7 +801,7 @@ void extract_ramdisk(t_abootimg* img) printf ("extracting ramdisk in %s\n", img->ramdisk_fname); - void* r = malloc(ksize); + void* r = malloc(rsize); if (!r) abort_perror(NULL);