commit | 651e3ffa9629fd0f07faabd379993113800ffcb7 | [log] [tgz] |
---|---|---|
author | Vedant Kumar <vsk@apple.com> | Wed Jun 29 16:22:12 2016 +0000 |
committer | Vedant Kumar <vsk@apple.com> | Wed Jun 29 16:22:12 2016 +0000 |
tree | 48ad71212d4fce208595610cfb0034540863031c | |
parent | 108515eb03b4ef92c1dce129d9c8ba3a19f05450 [diff] |
[llvm-cov] Do not allow ".." to escape the coverage sub-directory In -output-dir mode, file reports are placed into a "coverage" directory. If filenames in the coverage mapping contain "..", they might escape out of this directory. Fix the problem by removing ".." from source filenames (expand the path component). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274135 91177308-0d34-0410-b5e6-96231b3b80d8