Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
memory corruptions. * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as unsigned. (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
This commit is contained in:
parent
05d2ed3277
commit
cfed2ad097
2 changed files with 57 additions and 31 deletions
19
ChangeLog
19
ChangeLog
|
@ -1,3 +1,22 @@
|
|||
2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
|
||||
memory corruptions.
|
||||
|
||||
* grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
|
||||
unsigned.
|
||||
(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
|
||||
|
||||
2011-04-01 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* grub-core/normal/menu_entry.c (run): Quieten uninitialised
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue