commit 183f892a6b6f00d33d962f092508d8c9715dc897 parent a2c156ad288ef79007855b4278be4954da00f5bf Author: Yong <fevin86@gmail.com> Date: Wed, 15 Aug 2018 20:57:04 +1000 fix a bug when dec reach to the end with an open \" Diffstat:
M | decode_array.go | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/decode_array.go b/decode_array.go @@ -79,7 +79,7 @@ func (dec *Decoder) skipArray() (int, error) { arraysOpen++ case '"': j++ - for ; j < dec.length; j++ { + for ; j < dec.length || dec.read(); j++ { if dec.data[j] != '"' { continue }