summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindPython/Python3SABIModule.cmake
diff options
context:
space:
mode:
authorNikita Nemkin <nikita@nemkin.ru>2025-02-04 17:04:35 (GMT)
committerNikita Nemkin <nikita@nemkin.ru>2025-02-04 20:26:11 (GMT)
commit637a0f7ed437277ec22ba7ac5df7841664f0bcab (patch)
treeb9d346ebab59159cbc6694c882d84b48bdd16038 /Tests/RunCMake/FindPython/Python3SABIModule.cmake
parent8dfb1f40b7b643d3a232034c43ab1e70bc68c8eb (diff)
downloadCMake-637a0f7ed437277ec22ba7ac5df7841664f0bcab.zip
CMake-637a0f7ed437277ec22ba7ac5df7841664f0bcab.tar.gz
CMake-637a0f7ed437277ec22ba7ac5df7841664f0bcab.tar.bz2
cmCacheManager: Prevent corruption from multiline help strings
Corruption happens when a multiline help string starts with a newline. This causes an overflow in substr() and the whole, unescaped help string is written to the cache file. Multiline strings are escaped line by line. The fix is to start searching for line break points from position 1. A break point at zero, which triggers the overflow, could only produce a redundant empty line. Fixes: #9098
Diffstat (limited to 'Tests/RunCMake/FindPython/Python3SABIModule.cmake')
0 files changed, 0 insertions, 0 deletions