]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/VfrCompile: Fix segmentation fault issues
authorDandan Bi <dandan.bi@intel.com>
Tue, 11 Jul 2017 07:35:14 +0000 (15:35 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 4 Aug 2017 06:32:42 +0000 (14:32 +0800)
commit8c1e13d327e6c0409435edaa89b909fbdef49232
treefd2027a4d741cf199ebeca806739cb738674887b
parent41c9011cc166cff8a27a7e90592d81ba570b42ff
BaseTools/VfrCompile: Fix segmentation fault issues

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=532

(1) Add NULL check before using a pointer.
(2) Use "%s" format string in DebugError function to
    avoid crash caused by incorrect input.

Cc: Bo Chen <chenbo@pdx.edu>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
BaseTools/Source/C/VfrCompile/VfrCompiler.cpp