audk/MdePkg/Include
Marvin.Haeuser@outlook.com 498cb29dfd MdePkg/Base.h: Implement BASE_CR() via OFFSET_OF().
Replace the current NULL pointer dereference to retrieve Field's
offset with a call to OFFSET_OF().  This is implemented via
__builtin_offsetof for GCC and Clang, which eliminates UB caught by
Clang UndefinedBehaviorSanitizer.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2018-11-02 22:15:54 +08:00
..
AArch64 MdePkg: Disable some Level 4 warnings for VS2017/ARM64 2018-03-19 17:05:34 +08:00
Arm MdePkg: Disable some Level 4 warnings for VS2017/ARM 2018-02-07 09:49:20 +08:00
Ebc MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Guid MdePkg Cper.h: Add generic error macros for ARM platform 2018-08-15 09:34:48 -07:00
Ia32 MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
IndustryStandard MdePkg SmBios.h: Add SMBIOS 3.2.0 definitions 2018-08-28 10:13:32 +08:00
Library MdePkg/BaseLib: Add new AsmLfence API 2018-09-30 13:06:42 +08:00
Pi MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Ppi MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Protocol MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
Uefi MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
X64 MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Base.h MdePkg/Base.h: Implement BASE_CR() via OFFSET_OF(). 2018-11-02 22:15:54 +08:00
PiDxe.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PiMm.h MdePkg: Add new definitions for Management Mode. 2017-08-29 09:37:36 +08:00
PiPei.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PiSmm.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
Uefi.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00