mirror_edk2/BaseTools/Source
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
..
C BaseTools/VfrCompile: Avoid freeing freed memory in classes 2016-11-08 16:37:23 +08:00
Python BaseTools: Add the support for character '<' and '>' in the map file 2016-11-05 09:01:49 +08:00
BinaryFiles.txt BaseTools: update BinaryFiles.txt file to add Pkcs7Sign Tool 2016-08-23 07:58:07 +08:00