audk/BaseTools/Source/C/VfrCompile/Pccts/h
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
..
AParser.cpp Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
AParser.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
ASTBase.cpp Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
ASTBase.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
ATokPtr.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
ATokPtrImpl.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
AToken.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
ATokenBuffer.cpp Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
ATokenBuffer.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
ATokenStream.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
BufFileInput.cpp Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
BufFileInput.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
DLG_stream_input.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
DLexer.h BaseTools/VfrCompile: Add checks for array access 2016-11-08 16:37:07 +08:00
DLexerBase.cpp Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
DLexerBase.h BaseTools/VfrCompile: Avoid freeing freed memory in classes 2016-11-08 16:37:23 +08:00
PBlackBox.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
PCCTSAST.cpp Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
PCCTSAST.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
SList.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
antlr.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
ast.c Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
ast.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
charbuf.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
charptr.c Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
charptr.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
config.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
dlgauto.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
dlgdef.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
err.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
int.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
pccts_assert.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
pccts_iostream.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
pccts_istream.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
pccts_setjmp.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
pccts_stdarg.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
pccts_stdio.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
pccts_stdlib.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
pccts_string.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
pcctscfg.h Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
pcnames.bat Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00
slist.cpp Check In tool source code based on Build tool project revision r1655. 2009-07-17 09:10:31 +00:00