mirror of
https://github.com/ggrandou/abootimg.git
synced 2024-11-23 09:53:32 +08:00
Fix for malloc of wrong size, (crashed if ramdisk larger than kernel)
This commit is contained in:
parent
c3aa51b9af
commit
819366a970
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user