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
Code:
package main import ( "fmt" "github.com/Binject/debug/goobj2" ) func main() { const magicHeaderName = "magic/example" magicData := []byte("{}") original, err := goobj2.Parse("a.obj", "main", nil) if err != nil { panic(err) } original.ArchiveMembers = append(original.ArchiveMembers, goobj2.ArchiveMember{ ArchiveHeader: goobj2.ArchiveHeader{ Name: magicHeaderName, Size: int64(len(magicData)), Data: magicData, }, IsDataObj: true, }) if err := original.Write("b.obj"); err != nil { panic(err) } _, err = goobj2.Parse("b.obj", "main", nil) if err != nil { panic(err) } }
Output:
panic: EOF goroutine 1 [running]: main.main() main.go:33 +0x527
Error from here: https://github.com/Binject/debug/blob/master/goobj2/file.go#L550
The text was updated successfully, but these errors were encountered:
@pagran I am having a similar issue: can you send the test file you're using so I can reproduce the issue locally? I might have a fix...
Sorry, something went wrong.
@afjoseph a.obj.gz (ungzip first)
No branches or pull requests
Code:
Output:
Error from here: https://github.com/Binject/debug/blob/master/goobj2/file.go#L550
The text was updated successfully, but these errors were encountered: