diff options
author | Brad King <brad.king@kitware.com> | 2020-03-23 13:27:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-23 13:27:44 (GMT) |
commit | a4abf61520624bd94593b31192abf2c0b6fc4ea5 (patch) | |
tree | bec35c5915994953199b8288bd431ad2b1fd2b04 /Source/QtDialog/QCMake.cxx | |
parent | 8638c49f2a0b87c131be8f4d3147a2617938e30a (diff) | |
parent | ecc0086bfc754f5adc4e496ae025da4bb1796490 (diff) | |
download | CMake-a4abf61520624bd94593b31192abf2c0b6fc4ea5.zip CMake-a4abf61520624bd94593b31192abf2c0b6fc4ea5.tar.gz CMake-a4abf61520624bd94593b31192abf2c0b6fc4ea5.tar.bz2 |
Merge topic 'cmake-gui-open-check'
ecc0086bfc cmake-gui: Fix use-after-free in Open-possible check
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4508
Diffstat (limited to 'Source/QtDialog/QCMake.cxx')
-rw-r--r-- | Source/QtDialog/QCMake.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx index eaf50f2..2543215 100644 --- a/Source/QtDialog/QCMake.cxx +++ b/Source/QtDialog/QCMake.cxx @@ -484,7 +484,7 @@ void QCMake::setWarnUnusedMode(bool value) void QCMake::checkOpenPossible() { - auto data = this->BinaryDirectory.toLocal8Bit().data(); + std::string data = this->BinaryDirectory.toLocal8Bit().data(); auto possible = this->CMakeInstance->Open(data, true); emit openPossible(possible); } |