diff options
| author | Nikita Nemkin <nikita@nemkin.ru> | 2025-02-04 17:04:35 (GMT) |
|---|---|---|
| committer | Nikita Nemkin <nikita@nemkin.ru> | 2025-02-04 20:26:11 (GMT) |
| commit | 637a0f7ed437277ec22ba7ac5df7841664f0bcab (patch) | |
| tree | b9d346ebab59159cbc6694c882d84b48bdd16038 /Tests/RunCMake/FindPython/Python3SABIModule.cmake | |
| parent | 8dfb1f40b7b643d3a232034c43ab1e70bc68c8eb (diff) | |
| download | CMake-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
