grub/grub-core
Peter Jones 631a820038 Initialized initrd_ctx so we don't free a random pointer from the stack.
Currently, if "linux" fails, the "goto fail;" in grub_cmd_initrd sends us
into grub_initrd_close() without grub_initrd_init() being called, and thus
it never clears initrd_ctx->components.  grub_initrd_close() then frees that
address, which is stale data from the stack.  If the stack happens to have a
stale *address* there that matches a recent allocation, then you'll get a
double free later.

So initialize the memory up front.

Signed-off-by: Peter Jones <pjones@redhat.com>
2014-09-21 10:36:42 +04:00
..
boot * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields. 2013-12-19 01:53:56 +01:00
bus * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers. 2013-12-18 18:59:49 +01:00
commands * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check. 2014-06-22 03:51:50 +04:00
disk * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add 2014-08-10 11:27:13 +02:00
efiemu fix include loop on MinGW due to libintl.h pulling stdio.h 2014-01-18 21:22:57 +04:00
font Pass font config to config.h and not by TARGET_CFLAGS as adding 2013-12-04 10:25:53 +01:00
fs Fix incorrect address reference in btrfs 2014-09-08 11:33:40 +01:00
gdb With Apple assembly in .macro environvemnt you have to use $$ instead 2013-11-24 07:08:18 +01:00
gettext * grub-core/gettext/gettext.c (main_context), (secondary_context): 2013-11-07 01:01:47 +01:00
gfxmenu Enable -Wformat=2 if it's supported. 2013-12-21 15:28:28 +01:00
gnulib Allow compilation with mingw64 albeit with warnings due to lack of 2013-10-15 18:03:19 +02:00
hello * grub-core/commands/gptsync.c: Fix typographic quoting. 2012-03-03 13:05:08 +01:00
hook * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic 2011-11-11 21:03:49 +01:00
io Make grub_zlib_decompress handle incomplete chunks. 2013-12-18 23:39:49 +01:00
kern Fix build with glibc 2.20 2014-09-15 19:59:27 +04:00
lib Allow loading old kernels by placing GDT in conventional memory. 2014-04-20 16:00:55 +02:00
loader Initialized initrd_ctx so we don't free a random pointer from the stack. 2014-09-21 10:36:42 +04:00
mmap * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low 2014-02-28 09:50:47 +01:00
net add bootpath parser for open firmware 2014-02-04 19:02:16 -02:00
normal * grub-core/normal/main.c (read_config_file): Buffer config file. 2014-01-18 19:54:09 +01:00
osdep * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe device names. 2014-04-03 21:31:12 +02:00
partmap Enable -Wformat=2 if it's supported. 2013-12-21 15:28:28 +01:00
parttool * grub-core/net/http.c: Add TRANSLATORS comments. 2012-03-05 16:42:26 +01:00
script Decrease stack usage in lexer. 2013-11-16 16:37:59 +01:00
term * grub-core/term/at_keyboard.c: Retry probing keyboard if 2014-08-13 23:04:01 +02:00
tests * grub-core/tests/sleep_test.c: Silence spurious warning. 2013-12-16 20:32:43 +01:00
video fix include loop on MinGW due to libintl.h pulling stdio.h 2014-01-18 21:22:57 +04:00
gdb_grub.in * grub-core/gdb_grub.in: Fix overflow and wrong field. 2013-10-14 03:40:20 +02:00
genemuinit.sh use MODULE_FILES for genemuinit* instead of MOD_FILES 2014-01-18 23:15:40 +04:00
genemuinitheader.sh use MODULE_FILES for genemuinit* instead of MOD_FILES 2014-01-18 23:15:40 +04:00
genmod.sh.in * grub-core/genmod.sh.in: Strip before converting to ELF as strip 2013-12-16 13:18:48 +01:00
genmoddep.awk * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin. 2013-12-16 13:02:19 +01:00
gensyminfo.sh.in * grub-core/gensyminfo.sh.in: Handle the case of portable output 2013-11-11 23:05:53 +01:00
gensymlist.sh Make 'make check' work on emu. 2013-04-27 02:00:16 +02:00
gentrigtables.c * grub-core/gentrigtables.c: Make tables const. 2013-03-01 11:15:09 +01:00
gmodule.pl.in Add facility to debug GRUB with gdb under qemu. 2011-11-13 22:59:46 +01:00
gnulib-fix-null-deref.diff Import new gnulib. 2013-04-11 21:12:46 +02:00
gnulib-fix-width.diff Import new gnulib. 2013-04-11 21:12:46 +02:00
gnulib-no-abort.diff Import new gnulib. 2013-04-11 21:12:46 +02:00
gnulib-no-gets.diff Import new gnulib. 2013-04-11 21:12:46 +02:00
Makefile.am use MODULE_FILES for genemuinit* instead of MOD_FILES 2014-01-18 23:15:40 +04:00
Makefile.core.def strip .eh_frame section from arm64-efi kernel 2013-12-30 13:07:54 +00:00
modinfo.sh.in Save TARGET_CC version in modinfo.sh. 2013-12-24 14:47:44 +01:00