1. 21 Jan, 2015 1 commit
  2. 08 Sep, 2014 1 commit
    • Michael Chang's avatar
      Fix incorrect address reference in btrfs · 54bd9a06
      Michael Chang authored
      We encountered a weird random kernel initrd unpacking error on btrfs
      and finally found it was caused by incorrect address reference in range
      check for type GRUB_BTRFS_EXTENT_REGULAR and the entire result is
      unpredictable.
      
      This is a quick fix to make the address reference to the
      grub_btrfs_extent_data structure correctly, not the pointer variable
      to it.
      
      Any suggestions to this patch is welcome.
      54bd9a06
  3. 31 Mar, 2014 1 commit
  4. 19 Dec, 2013 1 commit
  5. 15 Dec, 2013 1 commit
  6. 16 Nov, 2013 2 commits
  7. 28 Oct, 2013 1 commit
  8. 21 Jan, 2013 1 commit
  9. 20 Jan, 2013 1 commit
    • Colin Watson's avatar
      Remove nested functions from device iterators. · 25239370
      Colin Watson authored
      * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
      (grub_arc_iterate_devs): Add hook_data argument.
      * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
      (struct grub_ata_dev.iterate): Add hook_data argument.
      * include/grub/device.h (grub_device_iterate_hook_t): New type.
      (grub_device_iterate): Add hook_data argument.
      * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
      (struct grub_disk_dev.iterate): Add hook_data argument.
      (grub_disk_dev_iterate): Likewise.
      * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
      Likewise.
      * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
      Likewise.
      * include/grub/partition.h (grub_partition_iterate_hook_t): New
      type.
      (struct grub_partition_map.iterate): Add hook_data argument.
      (grub_partition_iterate): Likewise.
      * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
      (struct grub_scsi_dev.iterate): Add hook_data argument.
      
      Update all callers.
      25239370
  10. 27 May, 2012 1 commit
  11. 04 May, 2012 1 commit
  12. 31 Mar, 2012 2 commits
  13. 28 Feb, 2012 1 commit
  14. 24 Feb, 2012 1 commit
  15. 12 Feb, 2012 1 commit
  16. 08 Feb, 2012 1 commit
  17. 25 Jan, 2012 1 commit
  18. 14 Jan, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Eliminate grub_min/grub_max prone to overflow usage. · 9c271078
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
      	(poll_nonroot_hub): Likewise.
      	* grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
      	(grub_affs_label): Likewise.
      	* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
      	* grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
      	(grub_hfs_label): Likewise.
      	* grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
      	* grub-core/fs/zfs/zfs.c (MIN): Remove.
      	(zap_leaf_array_equal): Use grub_size. Remove MIN.
      	(zap_leaf_array_get): Likewise.
      	(dnode_get_path): Likewise.
      	* grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
      	* grub-core/io/xzio.c (grub_xzio_read): Likewise.
      	* grub-core/script/execute.c (grub_script_break): Likewise.
      	* grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
      	grub_max.
      	* grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
      	* include/grub/misc.h (grub_min): Removed.
      	(grub_max): Likewise.
      9c271078
  19. 11 Nov, 2011 1 commit
  20. 10 Nov, 2011 1 commit
  21. 09 Nov, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix several memory leaks. · 8a5a3a5b
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
      	* grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
      	(grub_cpio_dir): Likewise.
      	* grub-core/fs/fat.c (grub_fat_label): Likewise.
      	* grub-core/fs/jfs.c (grub_jfs_label): Likewise.
      	* grub-core/fs/romfs.c (grub_romfs_close): Likewise.
      	(grub_romfs_label): Likewise.
      	* grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
      	(squash_unmount): New function.
      	(grub_squash_dir): Fix memory leak.
      	(grub_squash_open): Likewise.
      	(grub_squash_read): Likewise.
      	(grub_squash_mtime): Likewise.
      	* grub-core/fs/xfs.c (grub_xfs_open): Likewise.
      	* grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
      	* util/grub-fstest.c (fstest): Likewise.
      8a5a3a5b
  22. 05 Nov, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Support BtrFS embedding. · c7ba4f69
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
      	(grub_btrfs_fs) [GRUB_UTIL]: Set embed.
      	* include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
      	* util/grub-setup.c (setup): Use fs embedding if available.
      	Add additional sanity check.
      c7ba4f69
  23. 31 Oct, 2011 1 commit
  24. 04 Oct, 2011 2 commits
  25. 24 Aug, 2011 1 commit
  26. 23 Aug, 2011 1 commit
  27. 20 Aug, 2011 1 commit
  28. 14 Aug, 2011 2 commits
    • Szymon Janc's avatar
      Add support for LZO compression in btrfs. · 095f077e
      Szymon Janc authored
      * Makefile.util.def (libgrubmods.a): Add minilzo.c and add required flags
      to cflags in cppflags.
      * Makefile.core.def (btrfs): Likewise.
      * grub-core/fs/btrfs.c: Include minilzo.h.
      (grub_btrfs_superblock): Add sectorsize, nodesize, leafsize, stripsize and
      dummy5 field.
      (GRUB_BTRFS_COMPRESSION_LZO): New define.
      (grub_btrfs_extent_read): Add support for LZO compression type.
      095f077e
    • Szymon Janc's avatar
      b6085f32
  29. 27 Jun, 2011 1 commit
    • Yves Blusseau's avatar
      Display the path of the file when file is not found · 9e322ce8
      Yves Blusseau authored
      	* grub-core/fs/fat.c: Display the filename when file is not found.
      	* grub-core/fs/fshelp.c: Likewise.
      	* grub-core/fs/hfs.c: Likewise.
      	* grub-core/fs/jfs.c: Likewise.
      	* grub-core/fs/minix.c: Likewise.
      	* grub-core/fs/ufs.c: Likewise.
      	* grub-core/fs/btrfs.c: Likewise.
      	* grub-core/commands/i386/pc/play.c: Likewise.
      9e322ce8
  30. 18 May, 2011 1 commit
  31. 15 May, 2011 1 commit
  32. 19 Apr, 2011 1 commit
  33. 12 Apr, 2011 1 commit
  34. 11 Apr, 2011 3 commits