[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/3] reed_solomon: Fix array subscript 0 is outside array bou
From: |
Daniel Kiper |
Subject: |
Re: [PATCH 3/3] reed_solomon: Fix array subscript 0 is outside array bounds |
Date: |
Tue, 22 Mar 2022 22:21:10 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Thu, Mar 17, 2022 at 02:43:42PM +0800, Michael Chang via Grub-devel wrote:
> The grub_absolute_pointer() is a compound expression that can only work
> within a function. We are out of luck here when the pointer variables
> require global definition due to ATTRIBUTE_TEXT that have to use fully
> initialized global definition because of the way linkers work.
>
> static gf_single_t * const gf_powx ATTRIBUTE_TEXT = (void *) 0x100000;
>
> For the reason given above, use gcc diagnostic pragmas to suppress the
> array-bounds warning.
>
> Signed-off-by: Michael Chang <mchang@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel