- 14 Oct, 2014 1 commit
-
-
Andrei Borzenkov authored
struct ... foo = { 0, } is valid initializer, but older GCC emits warning which is fatal error due to -Werror=missing-field-initializer. So simply use full initializer to avoid these errors. This was fixed probably in GCC 4.7. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
-
- 21 Sep, 2014 1 commit
-
-
Peter Jones authored
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>
-
- 23 Mar, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 02 Mar, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 05 Mar, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4. * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise. * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise. * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise. * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise. * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
-
- 04 Mar, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 26 Feb, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 10 Feb, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition. * configure.ac (HOST_CFLAGS): Add bunch of -W arguments. (TARGET_CFLAGS): Likewise. (HOST_CFLAGS): Add -Werror unless --disable-werror is activated. * grub-core/Makefile.core.def (decompressor_xz): Add -Wno-unreachable-code. (normal): Add -Wno-redundant-decls. (xzio): Add -Wno-unreachable-code. (lzopio): Add -Wno-redundant-decls -Wno-error. * grub-core/commands/acpi.c: Add exception to -Wcast-align. * grub-core/commands/lsacpi.c: Add exception to -Wcast-align. * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute. * grub-core/kern/dl.c: Add exception to -Wcast-align. * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise. * grub-core/kern/i386/coreboot/init.c: Add exception to -Wsuggest-attribute=noreturn. * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align. * grub-core/kern/ia64/dl_helper.c: Likewise. * grub-core/kern/mips/dl.c: Likewise. * grub-core/kern/sparc64/dl.c: Likewise. * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow. * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise. (memcmp): Likewise. * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code. * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align. * grub-core/loader/mips/linux.c: Likewise. * grub-core/loader/multiboot_elfxx.c: Likewise. * grub-core/script/parser.y: Add exception to -Wunreachable-code. * grub-core/video/sm712.c: Add exception to -Wcast-align. * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand. * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and fixme. * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise. * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Fix prototype.
-
- 08 Feb, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
on it.
-
- 14 Jan, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
disks with unknown size. * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
-
- 13 Jan, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
grub_probe. Reported by: adamwill
-
- 26 Dec, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors. * grub-core/font/font.c (open_section): Likewise. * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument filename. Don't override errors. (grub_cmd_openbsd_ramdisk): Don't override errors. * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise. (grub_cmd_initrd): Likewise. * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise. (grub_cmd_initrd): Likewise. * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise. (grub_cmd_linux): Likewise. (grub_cmd_initrd): Likewise. (grub_cmd_payload): Likewise. * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise. * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise. (grub_cmd_module): Likewise. * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise. * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise. * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise. (grub_cmd_xnu_mkext): Likewise. (grub_cmd_xnu_ramdisk): Likewise. (grub_xnu_check_os_bundle_required): Likewise. (grub_xnu_load_kext_from_dir): Likewise. (grub_cmd_xnu_kextdir): Likewise. * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
-
- 31 Oct, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
string.
-
- 20 Aug, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S. * grub-core/boot/mips/loongson/fuloong.S: Rename to ... * grub-core/boot/mips/loongson/fuloong2f.S: ... this. (FULOONG): Rename to ... (FULOONG2F): ... this. All users updated. * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to (machtype_fuloong2f_str): ... this. (machtype_fuloong2e_str): New string. Check for machtype_fuloong2e_str. * grub-core/loader/mips/linux.c (loongson_machtypes) [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E. * grub-core/term/serial.c (loongson_defserial) [GRUB_MACHINE_MIPS_LOONGSON]: New array. (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use loongson_defserial. * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG): Rename to ... (GRUB_ARCH_MACHINE_FULOONG2F): ... this. (GRUB_ARCH_MACHINE_FULOONG2E): New const. * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH to IMAGE_FULOONG2F_FLASH. All users updated. (image_targets): Rename images. * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
-
- 17 May, 2011 2 commits
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save ram size in $s4. * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed. All users changed to grub_arch_memsize. * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to Loongson. [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize. * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size. * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New external variable.
-
Vladimir 'phcoder' Serbinenko authored
-
- 13 May, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 12 Apr, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
guidelines. * grub-core/kern/dl.c (grub_dl_check_license): New function. (grub_dl_load_core): Use grub_dl_check_license. * include/grub/dl.h (GRUB_MOD_SECTION): New macro. (GRUB_MOD_LICENSE): Likewise. (GRUB_MOD_DUAL_LICENSE): Likewise. All modules updated.
-
- 10 Apr, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
rather than trying to put initrd way too high. Reported by: Ryan Lortie <desrt@desrt.ca>
-
- 19 Feb, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 18 Jan, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 14 Jan, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 08 Nov, 2010 1 commit
-
-
Manoel Rebelo Abranches authored
* include/grub/elfload.h (grub_elf32_size): New parameter. All users updated. Return maximum segments alignment. (grub_elf64_size): Likewise. * kern/elf.c (grub_elf32_size): New parameter. All users updated. Return maximum segments alignment. (grub_elf64_size): Likewise. * grub-core/loader/powerpc/ieee1275/linux.c: (grub_linux_claimmap_iterate): New function. Uses the "available"property in the "memory" node for memory allocation for kernel in the PowerPC loader. (grub_linux_load32): Correctly find linux entry point offset. (grub_linux_load64): Likewise.
-
- 06 Nov, 2010 1 commit
-
-
Robert Millan authored
On Yeeloong, pass machine type information to Linux. * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG] (LOONGSON_MACHTYPE): New macro, set to "machtype=lemote-yeeloong-2f-8.9inches". [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as additional argument to Linux.
-
- 05 Sep, 2010 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
Made static. (grub_gzfile_open): Removed. All users updated. (GRUB_MOD_INIT): New function. (GRUB_MOD_FINI): Likewise. * grub-core/kern/file.c (grub_file_filters_all): New variable. (grub_file_filters_enabled): Likewise. (grub_file_open): Handle filters. * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio. * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise. * include/grub/file.h (grub_file_filter_id_t): New type. (grub_file_filter_t): Likewise. (grub_file_filters_all): New extern variable. (grub_file_filters_enabled): Likewise. (grub_file_filter_register): New inline function. (grub_file_filter_unregister): Likewise. (grub_file_filter_disable): Likewise. (grub_file_filter_disable_compression): Likewise. * include/grub/gzio.h: Removed.
-
- 04 Sep, 2010 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 06 May, 2010 1 commit
-
-
BVK Chaitanya authored
-