buger/jsonparser

Inifinite loop in blockEnd

p4zuu opened this issue · 1 comments

p4zuu commented

The following code creates an infinite loop in blockEnd function:

package main

import (
	"github.com/buger/jsonparser"
)

func main() {
	crasher := []byte(`{"a":[{"b":1},{"b":2},3],"c":{`)
	jsonparser.GetInt(crasher, "a", "b")
}

I can't find why for the moment. I continue my investigations :)

Don't seem to crash any more
https://play.golang.org/p/MDcOdBFPRCS