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

encoding/gob: Incorrect gob encoding of byte array #477

Closed
gopherbot opened this issue Dec 29, 2009 · 3 comments
Closed

encoding/gob: Incorrect gob encoding of byte array #477

gopherbot opened this issue Dec 29, 2009 · 3 comments

Comments

@gopherbot
Copy link

by soniakeys:

What steps will reproduce the problem?
1.  build with handy new gob/debug.go
2.  http://pastebin.com/f34911940

What is the expected output? What do you see instead?
Expected byte array encoded with predefined type id 5.
Instead, a 15 seems to have been generated somewhere.
Output:

new type id 14
        struct tsa
        id: 14
        field 0:        e1      id=15
type id 14
        7 bytes:        01 03 30 34 32 00
        field 0:
type id 15 not defined
2009/12/29 16:55:03 debug: field number out of range

What is your $GOOS?  $GOARCH?
linux amd64

Which revision are you using?  (hg identify)
719a3506aa5b+ tip

Please provide any additional information below.
@griesemer
Copy link
Contributor

Comment 1:

Owner changed to r...@golang.org.

@robpike
Copy link
Contributor

robpike commented Dec 30, 2009

Comment 2:

Status changed to Started.

@robpike
Copy link
Contributor

robpike commented Jan 6, 2010

Comment 3:

Status changed to Fixed.

@gopherbot gopherbot added the fixed label Jan 6, 2010
@mikioh mikioh changed the title Incorrect gob encoding of byte array encoding/gob: Incorrect gob encoding of byte array Feb 26, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants