]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/C/GenFw/Elf64Convert.c
BaseTools/GenFw: Correct datatypes in diagnostic messages and check for string termin...
authorMichael LeMay <michael.lemay@intel.com>
Fri, 29 Jan 2016 17:53:47 +0000 (09:53 -0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 17 Feb 2016 05:23:59 +0000 (13:23 +0800)
commitea3e924a0c91e2dd7fbb5e2f79899367222f27eb
treecf9dae8970c44c6afd350845125c3eac66897c45
parent621bb723a4e00cb93e8a94c6126de4976dde1d9e
BaseTools/GenFw: Correct datatypes in diagnostic messages and check for string termination

This patch revises multiple diagnostic messages to use correct
datatypes.  It also checks that a symbol name that is about to be used
in a diagnostic message is terminated by a null character within the
contents of the string table section so that the print routine does
not read past the end of the string table section contents when
reading the symbol name.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael LeMay <michael.lemay@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/C/GenFw/Elf32Convert.c
BaseTools/Source/C/GenFw/Elf64Convert.c