mirror_edk2/BaseTools/Source/C/VfrCompile
Dandan Bi 631ffb70eb BaseTools/VfrCompile: Add check to avoid using NULL pointer
Question value are stored in one specified storage, but the Data type
of the storage is not specified or there is no sub fields in the Data
type sometimes, so we need to add check before using related pointers.
Here list some NULL cases:
(1)For an efivastore which doesn't specify a data structure or a
   data type(UINT8,UINT16...)as the storage, just has VarName and
   VarSize instead, we can not get its data type before parsing
   its VarSize.

(2)For efivastore which just specifies the data type(UINT8,UINT16...)
   not a structure as the storage,this data type doesn't have sub-fields.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2017-11-03 12:39:45 +08:00
..
Pccts BaseTools/Pccts: Resolve GCC sting format mismatch build warning 2016-12-23 14:38:44 +08:00
EfiVfr.h BaseTools/VfrCompile: Remove the MAX_PATH limitation 2017-08-04 14:32:42 +08:00
GNUmakefile BaseTools VfrCompile GNU makefile: Replace CXX with BUILD_CXX 2016-09-08 13:05:07 +08:00
Makefile Sync EDKII BaseTools to BaseTools project r2100. 2010-12-06 05:17:09 +00:00
VfrCompiler.cpp BaseTools/VfrCompile: Remove the MAX_PATH limitation 2017-08-04 14:32:42 +08:00
VfrCompiler.h BaseTools/VfrCompile: Add checks for user/file inputs 2016-11-08 16:37:15 +08:00
VfrError.cpp BaseTool/VfrCompiler: Support Bit fields in EFI/Buffer VarStore 2017-09-21 16:17:40 +08:00
VfrError.h BaseTool/VfrCompiler: Support Bit fields in EFI/Buffer VarStore 2017-09-21 16:17:40 +08:00
VfrFormPkg.cpp BaseTool/VfrCompiler: Support Bit fields in EFI/Buffer VarStore 2017-09-21 16:17:40 +08:00
VfrFormPkg.h BaseTool/VfrCompiler: Support Bit fields in EFI/Buffer VarStore 2017-09-21 16:17:40 +08:00
VfrSyntax.g BaseTool/VfrCompiler: Support Bit fields in EFI/Buffer VarStore 2017-09-21 16:17:40 +08:00
VfrUtilityLib.cpp BaseTools/VfrCompile: Add check to avoid using NULL pointer 2017-11-03 12:39:45 +08:00
VfrUtilityLib.h BaseTool/VfrCompiler: Support Bit fields in EFI/Buffer VarStore 2017-09-21 16:17:40 +08:00