mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
BUG: The operator precedence is [] followed by *. Calling this method was causing out of array index segfaults bounds
This commit is contained in:
@@ -364,7 +364,7 @@ void CommandLineArguments::DeleteRemainingArguments(int argc, char*** argv)
|
||||
int cc;
|
||||
for ( cc = 0; cc < argc; ++ cc )
|
||||
{
|
||||
delete [] *argv[cc];
|
||||
delete [] (*argv)[cc];
|
||||
}
|
||||
delete [] *argv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user