audk/IntelFsp2Pkg/Tools
Chasel Chiu 3e63a91b17 IntelFsp2Pkg/SplitFspBin.py: Coverity scan flags issues.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1706

Issues were:
1. copy_paste_error: PeOptHdr vs PePlusOptHdr.
2. invalid_operation: Invalid operation on
null-like value "roffset".
3. invalid_operation: Invalid operation on
null-like value "rsize".

Fixed them by initializing roffset and rsize as PE32
image type and overriding them when PE32+ header found.

Test:
Compared script output before and after this patch and
the result is identical.

Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2020-02-13 09:21:22 +00:00
..
UserManuals IntelFsp2Pkg: Fix various typos 2019-07-11 21:07:17 +08:00
GenCfgOpt.py IntelFsp2Pkg/GenCfgOpt.py: Coverity scan flags issues. 2020-02-13 09:21:22 +00:00
PatchFv.py IntelFsp2Pkg: Fix various typos 2019-07-11 21:07:17 +08:00
SplitFspBin.py IntelFsp2Pkg/SplitFspBin.py: Coverity scan flags issues. 2020-02-13 09:21:22 +00:00