diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-16 21:51:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-20 14:56:39 (GMT) |
commit | fe27879c6b37d09084a740de843a54d39727c0f0 (patch) | |
tree | cf686de3d8576827d6f56f8e13710449f1864096 /Modules | |
parent | f3d76a88b7d95b9275839c8270941557797e79fe (diff) | |
download | CMake-fe27879c6b37d09084a740de843a54d39727c0f0.zip CMake-fe27879c6b37d09084a740de843a54d39727c0f0.tar.gz CMake-fe27879c6b37d09084a740de843a54d39727c0f0.tar.bz2 |
cmDependsJavaParserHelper: fix dangling pointer
The cmDependsJavaParserHelper tries to implement a "deep copy" in the
assignment operator of the internal class CurrentClass. To do that, it
uses std::copy and std::back_inserter. The copy constructor is
implemented in terms of the assignment operator but it does not
initialize the member NestedClasses, a pointer to vector. This pointer
is dereferenced in the assignment operator. Change the pointer to a
value and rely on the compiler generated special functions.
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions