* include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size

to uint64_t to prevent overflow.
	(grub_diskfilter_lv): Increase start_extent and extent_count
	to uint64_t to prevent overflow.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-04-04 14:31:22 +02:00
parent 9b83956ab9
commit e44092dbb9
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
to uint64_t to prevent overflow.
(grub_diskfilter_lv): Increase start_extent and extent_count
to uint64_t to prevent overflow.
2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Increase version.

View file

@ -42,7 +42,7 @@ struct grub_diskfilter_vg {
grub_size_t uuid_len;
/* Optional. */
char *name;
int extent_size;
grub_uint64_t extent_size;
struct grub_diskfilter_pv *pvs;
struct grub_diskfilter_lv *lvs;
struct grub_diskfilter_vg *next;
@ -100,8 +100,8 @@ struct grub_diskfilter_lv {
};
struct grub_diskfilter_segment {
unsigned int start_extent;
unsigned int extent_count;
grub_uint64_t start_extent;
grub_uint64_t extent_count;
enum
{
GRUB_DISKFILTER_STRIPED = 0,