summaryrefslogtreecommitdiffstats
path: root/Tests/Module/GenerateExportHeader/exportheader_test.cpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-12 13:46:54 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-12 13:52:33 (GMT)
commitfe44f057f200619702e42e472b3e18612eaa359f (patch)
tree0db327af3b8a3438f64fd5c0163757dab3fab266 /Tests/Module/GenerateExportHeader/exportheader_test.cpp
parentf25a301f3a8acc694e8c9d6f04733bfbffb1fd3c (diff)
downloadCMake-fe44f057f200619702e42e472b3e18612eaa359f.zip
CMake-fe44f057f200619702e42e472b3e18612eaa359f.tar.gz
CMake-fe44f057f200619702e42e472b3e18612eaa359f.tar.bz2
cmake: Fix read-after-free while checking command-line arguments
Since commit v2.8.12~300^2~1 (CLI: Suppress the unused warning if the key value pair is cached, 2013-05-16), cmake::SetCacheArgs saves a cachedValue pointer and may cause the memory to be freed (by setting the cache entry) before reading it again. Fix this by saving the old value in a separate string.
Diffstat (limited to 'Tests/Module/GenerateExportHeader/exportheader_test.cpp')
0 files changed, 0 insertions, 0 deletions