Fix an integer overflow.
This commit is contained in:
parent
2b36fbf493
commit
33b4b0c61a
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
|
||||||
|
|
||||||
2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
|
2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
|
* grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
|
||||||
|
|
|
@ -44,7 +44,7 @@ iterate_real (grub_disk_t disk, grub_disk_addr_t sector, int freebsd,
|
||||||
struct grub_partition_bsd_disk_label label;
|
struct grub_partition_bsd_disk_label label;
|
||||||
struct grub_partition p;
|
struct grub_partition p;
|
||||||
grub_disk_addr_t delta = 0;
|
grub_disk_addr_t delta = 0;
|
||||||
unsigned pos;
|
grub_disk_addr_t pos;
|
||||||
|
|
||||||
/* Read the BSD label. */
|
/* Read the BSD label. */
|
||||||
if (grub_disk_read (disk, sector, 0, sizeof (label), &label))
|
if (grub_disk_read (disk, sector, 0, sizeof (label), &label))
|
||||||
|
|
Loading…
Reference in a new issue