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

Infinite loop on bad input #6

Closed
tv42 opened this issue Aug 17, 2015 · 0 comments · Fixed by #8
Closed

Infinite loop on bad input #6

tv42 opened this issue Aug 17, 2015 · 0 comments · Fixed by #8

Comments

@tv42
Copy link
Contributor

tv42 commented Aug 17, 2015

Courtesy of https://github.com/dvyukov/go-fuzz

I'll submit a pull request to include this in the tree next..

package main

import (
    "fmt"

    "github.com/lytics/confl"
)

func main() {
    var v map[string]interface{}
    fmt.Println("about to hang")
    confl.Unmarshal([]byte("\x0e9\xbd\xbf\xefr"), &v)
    fmt.Println("never gets here")
}
@tv42 tv42 changed the title Inifinite loop on bad input Infinite loop on bad input Aug 17, 2015
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

Successfully merging a pull request may close this issue.

1 participant