mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
637a0f7ed4
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
20 KiB
20 KiB