Re: [PATCH 3/3] reed_solomon: Fix array subscript 0 is outside array bounds

2022-03-22 Thread Daniel Kiper
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 >

Re: [PATCH 3/3] reed_solomon: Fix array subscript 0 is outside array bounds

2022-03-17 Thread Michael Chang via Grub-devel
On Thu, Mar 17, 2022 at 08:41:32AM +0100, Paul Menzel wrote: > Dear Michael, > > > Thank you for working on that. > > > Am 17.03.22 um 07:43 schrieb Michael Chang via Grub-devel: > > The grub_absolute_pointer() is a compound expression that can only work > > within a function. We are out of luc

Re: [PATCH 3/3] reed_solomon: Fix array subscript 0 is outside array bounds

2022-03-17 Thread Paul Menzel
Dear Michael, Thank you for working on that. Am 17.03.22 um 07:43 schrieb Michael Chang via Grub-devel: 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

[PATCH 3/3] reed_solomon: Fix array subscript 0 is outside array bounds

2022-03-16 Thread Michael Chang via Grub-devel
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 *