audk/BaseTools/Source/C/VfrCompile
Bi, Dandan 13e3f8c033 BaseTools/VfrCompile: Avoid using uninitialized pointer
V2:
Add function _INIT_OPHDR_COND () for variable initialization.
Make code logic more clean.

Previously _CLEAR_SAVED_OPHDR () is used for variable
initialization, and we updated it to clean memory.
But _CLEAR_SAVED_OPHDR () is still called for variable
initialization. This will cause uninitialized pointer
will be checked to free and cause unexpected issue.

This patch is to add new function for variable initialization
and keep _CLEAR_SAVED_OPHDR () to clean memory which is
aligned with its function name.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Gary Lin <glin@suse.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
2018-05-09 16:30:36 +08:00
..
Pccts BaseTools: silence parentheses-equality warning 2018-01-02 20:37:32 +08:00
EfiVfr.h BaseTools/VfrCompile: Remove the MAX_PATH limitation 2017-08-04 14:32:42 +08:00
GNUmakefile BaseTools GNUmakefile: Remove HOST_ARCH in every tool Makefile 2018-02-06 13:44:42 +08:00
Makefile Sync EDKII BaseTools to BaseTools project r2100. 2010-12-06 05:17:09 +00:00
VfrCompiler.cpp BaseTool/VfrCompile: make delete[] match with new[] 2018-03-23 14:58:54 +08:00
VfrCompiler.h BaseTools/VfrCompile: Add checks for user/file inputs 2016-11-08 16:37:15 +08:00
VfrError.cpp BaseTool/VfrCompile: make delete[] match with new[] 2018-03-23 14:58:54 +08:00
VfrError.h BaseTool/VfrCompiler: Support Bit fields in EFI/Buffer VarStore 2017-09-21 16:17:40 +08:00
VfrFormPkg.cpp BaseTool/VfrCompile: make delete[] match with new[] 2018-03-23 14:58:54 +08:00
VfrFormPkg.h BaseTools: resolve initialization order errors in VfrFormPkg.h 2018-01-02 20:37:38 +08:00
VfrSyntax.g BaseTools/VfrCompile: Avoid using uninitialized pointer 2018-05-09 16:30:36 +08:00
VfrUtilityLib.cpp BaseTool/VfrCompile: make delete[] match with new[] 2018-04-17 16:57:00 +08:00
VfrUtilityLib.h BaseTool/VfrCompiler: Support Bit fields in EFI/Buffer VarStore 2017-09-21 16:17:40 +08:00