Skip to content
  • Sylvain Joubert's avatar
    ctest_coverage: fix out-of-bounds index in Jacoco parser · 1d16eae8
    Sylvain Joubert authored and Brad King's avatar Brad King committed
    When the current source file is not found the FilePath variable was left
    with the previous path content. In case the previous file had less lines
    than the current one and there are 'line' entries for the current one
    with higher number we ended up in a buffer overflow while indexing the
    previous file entry with a line number higher.  By clearing the
    FilePath, the empty() guard triggers correctly on an empty path and it
    avoid modifying the wrong data.
    1d16eae8