1. 10 Apr, 2011 3 commits
    • Colin Watson's avatar
    • Vladimir 'phcoder' Serbinenko's avatar
      Dynamically count the number of lines for the lower banner. · 8b8a81fa
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/normal/menu_entry.c (per_term_screen): New member
      	(print_down): Use num_entries.
      	(update_screen): Likewise.
      	(grub_menu_entry_run): Set num_entries.
      	* grub-core/normal/menu_text.c (menu_viewer_data): New member
      	(grub_print_message_indented): Move real part to ...
      	(grub_print_message_indented_real): ... here. Additional argument
      	(draw_border): Additional argument num_entries.
      	(print_message): Additional argument dry_run.
      	(print_entries): Receive menu viewer data.
      	(grub_menu_init_page): New argment num_entries.
      	(menu_text_set_chosen_entry): Use num_entries.
      	(grub_menu_try_text): Likewise.
      	* grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
      	All users updated.
      	(grub_ucs4_count_lines): New function.
      	* include/grub/term.h (grub_term_cursor_x): Moved from here ..
      	* grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
      	* include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
      	(grub_term_border_height): Likewise.
      	(grub_term_num_entries): Likewise.
    • Vladimir 'phcoder' Serbinenko's avatar
  2. 08 Apr, 2011 20 commits
  3. 06 Apr, 2011 8 commits
  4. 03 Apr, 2011 6 commits
  5. 01 Apr, 2011 3 commits
    • Colin Watson's avatar
      Store the loopback device as data on loopback grub_disk structures, · 2cccc747
      Colin Watson authored
      rather than the file it points to.  This fixes use of freed memory
      if an existing loopback device is replaced.
      * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
      disk->data, not dev->file.
      (grub_loopback_read): Adjust file assignment to match.
      Fixes Ubuntu bug #742967.
    • Colin Watson's avatar
      * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak · 186ae367
      Colin Watson authored
      when replacing an existing device.
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some · cfed2ad0
      Vladimir 'phcoder' Serbinenko authored
      	memory corruptions.
      	* grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
      	(grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
      	(grub_jfs_blkno): Use 64-bit quantities for block sectors.
      	(grub_jfs_read_inode): Likewise.
      	(grub_jfs_opendir): Likewise. Remove now useless casts.
      	(grub_jfs_getent): Likewise.
      	Make ino a grub_uint32_t rather than int.
      	(grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
      	(grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
      	division and module with bit operations.
      	(grub_jfs_find_file): Make ino a grub_uint32_t.
      	(grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities