audk/BaseTools/Source/C/VfrCompile
Michael D Kinney b258f12889 BaseTools/VrfCompile: Fix uninitialized field from unnamed field
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3687

If a C structure parsed by the VFR compiler contains an unnamed
field, then mFieldName is left uninitialized, which generates
random data in the VFR compiler output file.

If the FieldName is NULL, then initialize pNewField->mFieldName
to a Null-terminated empty string.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
2021-11-03 23:43:46 +00:00
..
Pccts Using LLVM compiler set to build BaseTools in Linux 2020-07-21 04:12:32 +00:00
EfiVfr.h BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GNUmakefile Using LLVM compiler set to build BaseTools in Linux 2020-07-21 04:12:32 +00:00
Makefile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
VfrCompiler.cpp BaseTools/VfrCompile: Remove framework VFR support 2019-05-09 09:42:54 +08:00
VfrCompiler.h BaseTools/VfrCompile: Remove framework VFR support 2019-05-09 09:42:54 +08:00
VfrError.cpp BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
VfrError.h BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
VfrFormPkg.cpp BaseTools/VfrCompile: Remove framework VFR support 2019-05-09 09:42:54 +08:00
VfrFormPkg.h BaseTools/VfrCompile: Remove framework VFR support 2019-05-09 09:42:54 +08:00
VfrSyntax.g BaseTools/VfrCompile: VFR compiler supports REST_STYLE in HII option 2020-11-11 00:53:00 +00:00
VfrUtilityLib.cpp BaseTools/VrfCompile: Fix uninitialized field from unnamed field 2021-11-03 23:43:46 +00:00
VfrUtilityLib.h BaseTools/VfrCompile: Remove framework VFR support 2019-05-09 09:42:54 +08:00