We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following program crashes with the panic:
package main import ( pb "github.com/dvyukov/go-fuzz/examples/protobuf/pb" "github.com/golang/protobuf/proto" ) func main() { data := []byte("\n\x02\n\x00") v := new(pb.M24) err := proto.Unmarshal(data, v) if err != nil { return } _, err = proto.Marshal(v) if err != nil { panic(err) } }
panic: proto: map has nil element
The proto used is:
message M24 { map<string, M2> f = 1; }
The message should either be successfully encoded or not decoded.
on commit 34a5f24
The text was updated successfully, but these errors were encountered:
This appears to be successfully encoded now :)
$ rm -rf $GOPATH/src/github.com/{dvyukov/go-fuzz,golang/protobuf} $ cat <<EOF > main.go package main import ( pb "github.com/dvyukov/go-fuzz/examples/protobuf/pb" "github.com/golang/protobuf/proto" ) func main() { data := []byte("\n\x02\n\x00") v := new(pb.M24) err := proto.Unmarshal(data, v) if err != nil { return } _, err = proto.Marshal(v) if err != nil { panic(err) } } EOF $ go get . $ go build && ./golang-protobuf-issue-34 $ echo $? 0
Sorry, something went wrong.
No branches or pull requests
The following program crashes with the panic:
The proto used is:
The message should either be successfully encoded or not decoded.
on commit 34a5f24
The text was updated successfully, but these errors were encountered: