diff options
| author | Necip Fazil Yildiran <necip@google.com> | 2023-06-26 20:24:21 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-06-28 12:18:06 +0200 |
| commit | 76ba8519c0196eee66ff8ddb6b3eb1129b083389 (patch) | |
| tree | fa15c1b0397e5d2bc7e26bdae2cec948fd90b184 /pkg/instance | |
| parent | dabd7d07d0f403db2f1a1d13c26af5d5b5ce33a5 (diff) | |
pkg/cover/backend: check absolute path when cleaning path
The arguments `objDir`and `srcDir` of cleanPath() are absolute paths, see
osutil.Abs() calls in:
* syz-cover: tools/syz-cover/syz-cover.go
* syz-manager: pkg/mgrconfig/load.go
However, when the `path` argument is not absolute, the first two checks
of cleanPath (when file is built in path or when file was moved from
builDir to srcDir) always evaluate to false.
Instead use absolute path for those checks.
Diffstat (limited to 'pkg/instance')
0 files changed, 0 insertions, 0 deletions
