Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inifinite loop in blockEnd #179

Closed
p4zuu opened this issue Oct 18, 2019 · 1 comment
Closed

Inifinite loop in blockEnd #179

p4zuu opened this issue Oct 18, 2019 · 1 comment

Comments

@p4zuu
Copy link

p4zuu commented Oct 18, 2019

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 :)

@niraizik
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants