Skip to content

Commit 91e691a

Browse files
committed
Fix decodeEscapeString err
`p` was not updated after the `stream.buf` is reallocated
1 parent ad245e5 commit 91e691a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/decoder/string.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ RETRY:
170170
s.buf = append(s.buf[:s.cursor-1], s.buf[s.cursor:]...)
171171
s.length--
172172
s.cursor--
173+
p = s.bufptr()
173174
return p, nil
174175
}
175176

0 commit comments

Comments
 (0)