mirror of https://github.com/acidanthera/audk.git
77dee0b185
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> |
||
---|---|---|
.. | ||
AParser.cpp | ||
AParser.h | ||
ASTBase.cpp | ||
ASTBase.h | ||
ATokPtr.h | ||
ATokPtrImpl.h | ||
AToken.h | ||
ATokenBuffer.cpp | ||
ATokenBuffer.h | ||
ATokenStream.h | ||
BufFileInput.cpp | ||
BufFileInput.h | ||
DLG_stream_input.h | ||
DLexer.h | ||
DLexerBase.cpp | ||
DLexerBase.h | ||
PBlackBox.h | ||
PCCTSAST.cpp | ||
PCCTSAST.h | ||
SList.h | ||
antlr.h | ||
ast.c | ||
ast.h | ||
charbuf.h | ||
charptr.c | ||
charptr.h | ||
config.h | ||
dlgauto.h | ||
dlgdef.h | ||
err.h | ||
int.h | ||
pccts_assert.h | ||
pccts_iostream.h | ||
pccts_istream.h | ||
pccts_setjmp.h | ||
pccts_stdarg.h | ||
pccts_stdio.h | ||
pccts_stdlib.h | ||
pccts_string.h | ||
pcctscfg.h | ||
pcnames.bat | ||
slist.cpp |