Explorar o código

BUG:6990 fix crash with set_source_files_properties

Bill Hoffman %!s(int64=17) %!d(string=hai) anos
pai
achega
b7ed54c950
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Source/cmSetSourceFilesPropertiesCommand.cxx

+ 2 - 1
Source/cmSetSourceFilesPropertiesCommand.cxx

@@ -33,7 +33,8 @@ bool cmSetSourceFilesPropertiesCommand
   std::vector<std::string>::const_iterator j;
   j = args.begin();
   // old style allows for specifier before PROPERTIES keyword
-  while (*j != "ABSTRACT" &&
+  while (j != args.end() &&
+         *j != "ABSTRACT" &&
          *j != "WRAP_EXCLUDE" &&
          *j != "GENERATED" &&
          *j != "COMPILE_FLAGS" &&