mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 03:11:08 -06:00
Fix potential bad memory access, thanks to Eike
This commit is contained in:
committed by
Rolf Eike Beer
parent
62b589b4cd
commit
7c82b7f51a
@@ -512,7 +512,7 @@ bool cmDocumentation::CreateSingleModule(const char* fname,
|
||||
if(line.size() && line[0] == '#')
|
||||
{
|
||||
/* line beginnings with ## are mark-up ignore them */
|
||||
if (line[1] == '#') continue;
|
||||
if (line.size()>=2 && line[1] == '#') continue;
|
||||
// blank line
|
||||
if(line.size() <= 2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user