mirror_edk2/BaseTools/Source/C/VfrCompile
Hao Wu 77dee0b185 BaseTools/VfrCompile: Avoid freeing freed memory in classes
For classes that contain dynamically allocated data members, copy
constructor and assignment operator should be implemented or both
operations should be prohibited to avoid freeing freed memory caused by
shallow copy.

This commit declares both copy constructor and assignment operator as
'private' for classes that contain dynamically allocated data members.
This will prevent freeing already freed memory.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2016-11-08 16:37:23 +08:00
..
Pccts BaseTools/VfrCompile: Avoid freeing freed memory in classes 2016-11-08 16:37:23 +08:00
EfiVfr.h License header updated to match correct format. 2014-08-28 13:53:34 +00: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: Avoid freeing memory with mismatched functions 2016-11-08 16:37:17 +08:00
VfrCompiler.h BaseTools/VfrCompile: Add checks for user/file inputs 2016-11-08 16:37:15 +08:00
VfrError.cpp BaseTools/VfrCompile: Avoid freeing memory with mismatched functions 2016-11-08 16:37:17 +08:00
VfrError.h BaseTools/VfrCompile: Avoid freeing freed memory in classes 2016-11-08 16:37:23 +08:00
VfrFormPkg.cpp BaseTools/VfrCompile: Avoid freeing memory with mismatched functions 2016-11-08 16:37:17 +08:00
VfrFormPkg.h BaseTools/VfrCompile: Avoid freeing freed memory in classes 2016-11-08 16:37:23 +08:00
VfrSyntax.g BaseTools/VfrCompile: Add two new option for VfrCompile 2016-08-08 11:07:24 +08:00
VfrUtilityLib.cpp BaseTools/VfrCompile: Add assignment operator definition for some classes 2016-11-08 16:37:20 +08:00
VfrUtilityLib.h BaseTools/VfrCompile: Avoid freeing freed memory in classes 2016-11-08 16:37:23 +08:00