audk/MdePkg
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
..
Include MdePkg/Base.h: Implement BASE_CR() via OFFSET_OF(). 2018-11-02 22:15:54 +08:00
Library MdePkg: Handle AcpiExp device path when optional para is not specified 2018-10-24 22:15:57 +08:00
MdePkg.dec MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
MdePkg.dsc MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
MdePkg.uni MdePkg: Removing ipf which is no longer supported from edk2. 2018-09-25 23:48:21 +08:00
MdePkgExtra.uni MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00