Skip to content

Commit 523f460

Browse files
jodacoa-nogikh
authored andcommitted
pkg/symbolizer: fix parser handling of small hex values
The parser in symbolizer was incorrectly handling values of 0x0-0xf. Fixes #6290
1 parent 6e8d317 commit 523f460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/symbolizer/addr2line.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func parse(interner *Interner, s *bufio.Scanner) ([]Frame, error) {
138138
var frames []Frame
139139
for s.Scan() {
140140
ln := s.Text()
141-
if len(ln) > 3 && ln[0] == '0' && ln[1] == 'x' {
141+
if len(ln) >= 3 && ln[0] == '0' && ln[1] == 'x' {
142142
break
143143
}
144144
fn := ln

0 commit comments

Comments
 (0)