diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-12 12:24:52 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-12 12:24:52 +0100 |
| commit | 081721ff155e6fae822c7058dc8c8d2cd293a497 (patch) | |
| tree | c585dfe26c9523456e18322cef3b45bcc841130d /pkg | |
| parent | 7130893383f4e09240efbec6a4f31ba0c47337c8 (diff) | |
pkg/report: clean guilty files
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/report/linux.go | 3 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/guilty/11 | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 5f966c8db..3e53488a2 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -360,7 +360,8 @@ func (ctx *linux) extractFiles(report []byte) []string { matches := filenameRe.FindAll(report, -1) var files []string for _, match := range matches { - files = append(files, string(bytes.Split(match, []byte{':'})[0])) + f := string(bytes.Split(match, []byte{':'})[0]) + files = append(files, filepath.Clean(f)) } return files } diff --git a/pkg/report/testdata/linux/guilty/11 b/pkg/report/testdata/linux/guilty/11 index 06140cdc3..a69e1fa49 100644 --- a/pkg/report/testdata/linux/guilty/11 +++ b/pkg/report/testdata/linux/guilty/11 @@ -1,4 +1,4 @@ -FILE: arch/x86/kvm/../../../virt/kvm/eventfd.c +FILE: virt/kvm/eventfd.c irq bypass consumer (token ffff8801bff15e80) registration fails: -16 kasan: CONFIG_KASAN_INLINE enabled |
