audk/MdePkg
Laszlo Ersek 1fd227dd26 MdePkg/PiFirmwareFile: fix undefined behavior in FFS_FILE_SIZE
Accessing "EFI_FFS_FILE_HEADER.Size", which is of type UINT8[3], through a
(UINT32*), is undefined behavior. Fix it by accessing the array elements
individually.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=1710
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2019-04-24 17:31:00 +02:00
..
Include MdePkg/PiFirmwareFile: fix undefined behavior in FFS_FILE_SIZE 2019-04-24 17:31:00 +02:00
Library MdePkg/BaseLib: Remove support of INTEL tool chain 2019-04-24 10:23:21 +08:00
MdePkg.dec MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
MdePkg.dsc MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
MdePkg.uni MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00
MdePkgExtra.uni MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00