Re: [Qemu-devel] [PATCH v3 0/2] block: vpc - prevent overflow

2015-07-24 Thread Kevin Wolf
Am 24.07.2015 um 16:26 hat Jeff Cody geschrieben: > Changes: > > v3: check for INT_MAX / 4 as well, and use ROUND_UP (Thanks Max) > > v2 now also checks that Max Table Entries is < SIZE_MAX / 4 (Thanks Stefan) > > This series fixes a bug found by Richard Jones. > > When we allocate the pagetabl

[Qemu-devel] [PATCH v3 0/2] block: vpc - prevent overflow

2015-07-24 Thread Jeff Cody
Changes: v3: check for INT_MAX / 4 as well, and use ROUND_UP (Thanks Max) v2 now also checks that Max Table Entries is < SIZE_MAX / 4 (Thanks Stefan) This series fixes a bug found by Richard Jones. When we allocate the pagetable based on max_table_entries, we multiply the max table entry value