Browse Source

Merge topic 'jacoco_parser_crash'

1d16eae868 ctest_coverage: fix out-of-bounds index in Jacoco parser

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3147
Brad King 6 years ago
parent
commit
a60f1c4faf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/CTest/cmParseJacocoCoverage.cxx

+ 1 - 0
Source/CTest/cmParseJacocoCoverage.cxx

@@ -29,6 +29,7 @@ protected:
       this->PackageName = atts[1];
       this->PackagePath.clear();
     } else if (name == "sourcefile") {
+      this->FilePath.clear();
       std::string fileName = atts[1];
 
       if (this->PackagePath.empty()) {