php_session_decoder
php_session_decoder copied to clipboard
PHP session encoder/decoder written in Go
Using int is easy to result in memory overflow on Linux.
When building packages depending on this one on 32 bit platforms, the following error occurs: ``` # github.com/pydio/cells/vendor/github.com/yvasiyarov/php_session_decoder/php_serialize vendor/github.com/yvasiyarov/php_session_decoder/php_serialize/unserialize.go:266:19: UNSERIALIZABLE_OBJECT_MAX_LEN (un typed int constant 10737418240) overflows int ``` Please fix...
Decoder spending 87 seconds (on my laptop) to decode: `"|a-463537550:\x0e\x01\x1f\x15\x00\x01\x05\f\f\x13"`
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...