6ffc432367
While evaluating `if(MATCHES)` we get a `const char*` pointer to the string to be matched. On code like if(CMAKE_MATCH_COUNT MATCHES "Y") the string to be matched may be owned by our own result variables. We must move the value to our own buffer before clearing them. Otherwise we risk reading freed storage. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
InvalidArgument1-result.txt | ||
InvalidArgument1-stderr.txt | ||
InvalidArgument1.cmake | ||
IsDirectory-stdout.txt | ||
IsDirectory.cmake | ||
IsDirectoryLong-stdout.txt | ||
IsDirectoryLong.cmake | ||
MatchesSelf.cmake | ||
RunCMakeTest.cmake | ||
TestNameThatDoesNotExist-stdout.txt | ||
TestNameThatDoesNotExist.cmake | ||
TestNameThatExists-stdout.txt | ||
TestNameThatExists.cmake | ||
elseif-message-result.txt | ||
elseif-message-stderr.txt | ||
elseif-message.cmake |