Fix overflow in grub_util_get_fd_size for NetBSD.
This commit is contained in:
parent
8a4d6a445b
commit
650cfcfea2
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
|
||||
|
||||
Fix overflow.
|
||||
|
||||
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
|
||||
[__NetBSD__]: Add explicit cast before bitshift.
|
||||
|
||||
2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* configure.ac: Bump to 2.00~rc1.
|
||||
|
|
|
@ -309,7 +309,7 @@ grub_util_get_fd_size (int fd, const char *name, unsigned *log_secsize)
|
|||
# if defined (__APPLE__)
|
||||
return nr << log_sector_size;
|
||||
# elif defined(__NetBSD__)
|
||||
return label.d_secperunit << log_sector_size;
|
||||
return (grub_uint64_t) label.d_secperunit << log_sector_size;
|
||||
# elif defined (__sun__)
|
||||
return minfo.dki_capacity << log_sector_size;
|
||||
# else
|
||||
|
|
Loading…
Reference in a new issue