audk/BaseTools/Source/C/GenFw
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
..
Elf32Convert.c BaseTools/GenFw: Exit with error when header lookup fails 2016-02-17 13:17:26 +08:00
Elf32Convert.h License header updated to match correct format. 2014-08-28 13:53:34 +00:00
Elf64Convert.c BaseTools/GenFw: Exit with error when header lookup fails 2016-02-17 13:17:26 +08:00
Elf64Convert.h License header updated to match correct format. 2014-08-28 13:53:34 +00:00
ElfConvert.c BaseTools: Update GenFw to support 4K alignment. 2015-06-29 03:17:34 +00:00
ElfConvert.h BaseTools: Update GenFw to support 4K alignment. 2015-06-29 03:17:34 +00:00
GNUmakefile Sync BaseTool trunk (version r2599) into EDKII BaseTools. 2013-08-23 02:18:16 +00:00
GenFw.c BaseTools/GenFw: add new option to not zero PE/COFF optional header fields 2015-11-11 06:30:42 +00:00
GenFw.h License header updated to match correct format. 2014-08-28 13:53:34 +00:00
Makefile Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
elf32.h Sync BaseTool trunk (version r2649) into EDKII BaseTools. 2014-01-27 05:23:15 +00:00
elf64.h Sync BaseTool trunk (version r2649) into EDKII BaseTools. 2014-01-27 05:23:15 +00:00
elf_common.h Sync BaseTool trunk (version r2649) into EDKII BaseTools. 2014-01-27 05:23:15 +00:00