audk/BaseTools/Source/C
Michael LeMay 17751c5fa4 BaseTools/GenFw: Exit with error when header lookup fails
This patch revises GetPhdrByIndex and GetShdrByIndex to cause GenFw to
exit with an error message when a section header lookup fails.  The
current behavior of those functions in such circumstances is to return
NULL, which can cause GenFw to subsequently fault when it attempts to
dereference the null pointer.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael LeMay <michael.lemay@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
2016-02-17 13:17:26 +08:00
..
BootSectImage BaseTools-Source: Update displayed version information 2016-02-16 10:58:40 +08:00
Common BaseTools/PeCoffLoader: fix handling of ARM MOVW/MOVT instruction relocs 2015-10-09 18:55:28 +00:00
EfiLdrImage BaseTools-Source: Update displayed version information 2016-02-16 10:58:40 +08:00
EfiRom License header updated to match correct format. 2014-08-28 13:53:34 +00:00
GenBootSector BaseTools: Fix 'caculate' typos 2016-01-06 01:13:35 +00:00
GenCrc32 License header updated to match correct format. 2014-08-28 13:53:34 +00:00
GenFfs BaseTools: use GUID identifiable section for FFS alignment padding 2015-07-27 13:50:19 +00:00
GenFv BaseTools: Fix 'caculate' typos 2016-01-06 01:13:35 +00:00
GenFw BaseTools/GenFw: Exit with error when header lookup fails 2016-02-17 13:17:26 +08:00
GenPage License header updated to match correct format. 2014-08-28 13:53:34 +00:00
GenSec License header updated to match correct format. 2014-08-28 13:53:34 +00:00
GenVtf BaseTools: Update BaseTools to pass VS2015 compiler 2016-01-29 04:54:37 +00:00
GnuGenBootSector License header updated to match correct format. 2014-08-28 13:53:34 +00:00
Include Revert the change in r19137. 2015-12-07 09:01:44 +00:00
LzmaCompress BaseTools: Update BaseTools to pass VS2015 compiler 2016-01-29 04:54:37 +00:00
Makefiles BaseTools: Fix build on FreeBSD and allow use of non-gcc system compiler 2015-07-08 01:06:25 +00:00
PyEfiCompressor License header updated to match correct format. 2014-08-28 13:53:34 +00:00
PyUtility License header updated to match correct format. 2014-08-28 13:53:34 +00:00
Split BaseTools-Source: Update displayed version information 2016-02-16 10:58:40 +08:00
TianoCompress License header updated to match correct format. 2014-08-28 13:53:34 +00:00
VfrCompile BaseTools-Source: Update displayed version information 2016-02-16 10:58:40 +08:00
VolInfo BaseTools-Source: Update displayed version information 2016-02-16 10:58:40 +08:00
GNUmakefile BaseTools: add ARCH detection for AARCH64 and ARM 2015-08-12 05:22:49 +00:00
Makefile Fix nmake cleanall bugs. 2014-08-25 05:00:34 +00:00