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

Programm Panics #16

Open
gregory-m opened this issue Sep 7, 2015 · 0 comments
Open

Programm Panics #16

gregory-m opened this issue Sep 7, 2015 · 0 comments

Comments

@gregory-m
Copy link
Contributor

Programm panics then decoding flowing string "|C040000000000000000000:"

panic: runtime error: makeslice: len out of range [recovered]
    panic: runtime error: makeslice: len out of range

goroutine 29 [running]:
testing.tRunner.func1(0x8203a0e10)
    /usr/local/Cellar/go/1.5/libexec/src/testing/testing.go:450 +0x171
github.com/yvasiyarov/php_session_decoder/php_serialize.(*UnSerializer).decodeString(0x82032baa0, 0x2200000022, 0x217000, 0x0, 0x0)
    /Users/gregory/Documents/gospace/src/github.com/yvasiyarov/php_session_decoder/php_serialize/unserialize.go:133 +0xe4
github.com/yvasiyarov/php_session_decoder/php_serialize.(*UnSerializer).readClassName(0x82032baa0, 0x0, 0x0)
    /Users/gregory/Documents/gospace/src/github.com/yvasiyarov/php_session_decoder/php_serialize/unserialize.go:273 +0x48
github.com/yvasiyarov/php_session_decoder/php_serialize.(*UnSerializer).decodeSerialized(0x82032baa0, 0x0, 0x0)
    /Users/gregory/Documents/gospace/src/github.com/yvasiyarov/php_session_decoder/php_serialize/unserialize.go:197 +0x42
github.com/yvasiyarov/php_session_decoder/php_serialize.(*UnSerializer).Decode(0x82032baa0, 0x0, 0x0, 0x0, 0x0)
    /Users/gregory/Documents/gospace/src/github.com/yvasiyarov/php_session_decoder/php_serialize/unserialize.go:66 +0x159
github.com/yvasiyarov/php_session_decoder.(*PhpDecoder).Decode(0x8203a7eb0, 0x82032baa0, 0x0, 0x0)
    /Users/gregory/Documents/gospace/src/github.com/yvasiyarov/php_session_decoder/decoder.go:41 +0x149
github.com/yvasiyarov/php_session_decoder.TestFuzzCrashers(0x8203a0e10)
    /Users/gregory/Documents/gospace/src/github.com/yvasiyarov/php_session_decoder/fuzz_test.go:20 +0x1fb
testing.tRunner(0x8203a0e10, 0x2b4680)
    /usr/local/Cellar/go/1.5/libexec/src/testing/testing.go:456 +0x98
created by testing.RunTests
    /usr/local/Cellar/go/1.5/libexec/src/testing/testing.go:561 +0x86d
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

1 participant