[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: calculation overflow in grub_mm_init_region (patch)
From: |
Seth Goldberg |
Subject: |
Re: calculation overflow in grub_mm_init_region (patch) |
Date: |
Wed, 11 Sep 2013 10:01:55 -0700 |
On Sep 10, 2013, at 3:36 PM, Leif Lindholm <address@hidden> wrote:
> On 10 September 2013 22:46, Seth Goldberg <address@hidden> wrote:
>> Why would region_end be zero? That sounds like an invalid value.
>
> Because when a heap region sits at the top of RAM, region base +
> region size == 0.
So, an overflow. Ugh. Reserving the last 4k would be fine, too, yes.
--S
>
> /
> Leif
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel