aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/linux.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-02-16 15:28:25 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-02-16 15:47:22 +0100
commit9b6a358e19fa09587fa173238fda2f0d04a51e02 (patch)
treef52b6ee179e4bf19c0368015cbd576d6a9ac38be /pkg/report/linux.go
parent8a350932a685825c6d9b2677d031df96282f2d81 (diff)
pkg/report: handle guilty file extraction for non-symbolized reports
Currently we return ".", which is not really expected by all the surrounding logic.
Diffstat (limited to 'pkg/report/linux.go')
-rw-r--r--pkg/report/linux.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index 06b372f09..320f5b148 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -735,10 +735,9 @@ func (ctx *linux) extractGuiltyFileImpl(report []byte) string {
if matchesAny(file, ctx.guiltyFileIgnores) || ctx.guiltyLineIgnore.Match(scanner.Bytes()) {
continue
}
- guilty = string(file)
+ guilty = filepath.Clean(string(file))
break
}
- guilty = filepath.Clean(guilty)
// Search for deeper filepaths in the stack trace below the first possible guilty file.
deepestPath := filepath.Dir(guilty)