Re: [edk2-devel] [PATCH v2 4/7] ArmPkg/DefaultExceptionHandlerLib: Check DebugImageInfoTable type safely

2021-08-16 Thread Ard Biesheuvel
On Mon, 9 Aug 2021 at 23:19, Marvin Häuser wrote: > > On 09/08/2021 14:40, Marvin Häuser wrote: > > On 09/08/2021 13:55, Ard Biesheuvel wrote: > >> On Mon, 9 Aug 2021 at 11:51, Marvin Häuser wrote: > >>> C does not allow casting to or dereferencing incompatible pointer > >>> types. Use the

Re: [edk2-devel] [PATCH v2 4/7] ArmPkg/DefaultExceptionHandlerLib: Check DebugImageInfoTable type safely

2021-08-09 Thread Marvin Häuser
On 09/08/2021 14:40, Marvin Häuser wrote: On 09/08/2021 13:55, Ard Biesheuvel wrote: On Mon, 9 Aug 2021 at 11:51, Marvin Häuser wrote: C does not allow casting to or dereferencing incompatible pointer types. Use the ImageInfoType member of the union first to determine the data type before

Re: [edk2-devel] [PATCH v2 4/7] ArmPkg/DefaultExceptionHandlerLib: Check DebugImageInfoTable type safely

2021-08-09 Thread Marvin Häuser
On 09/08/2021 13:55, Ard Biesheuvel wrote: On Mon, 9 Aug 2021 at 11:51, Marvin Häuser wrote: C does not allow casting to or dereferencing incompatible pointer types. Use the ImageInfoType member of the union first to determine the data type before dereferencing NormalImage. Cc: Leif Lindholm

Re: [edk2-devel] [PATCH v2 4/7] ArmPkg/DefaultExceptionHandlerLib: Check DebugImageInfoTable type safely

2021-08-09 Thread Ard Biesheuvel
On Mon, 9 Aug 2021 at 11:51, Marvin Häuser wrote: > > C does not allow casting to or dereferencing incompatible pointer > types. Use the ImageInfoType member of the union first to determine > the data type before dereferencing NormalImage. > > Cc: Leif Lindholm > Cc: Ard Biesheuvel > Cc: Vitaly

[edk2-devel] [PATCH v2 4/7] ArmPkg/DefaultExceptionHandlerLib: Check DebugImageInfoTable type safely

2021-08-09 Thread Marvin Häuser
C does not allow casting to or dereferencing incompatible pointer types. Use the ImageInfoType member of the union first to determine the data type before dereferencing NormalImage. Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Vitaly Cheptsov Signed-off-by: Marvin Häuser ---