naholyr/js-php-unserialize — pull request #1 by stoffera (2013-01-11 18:21:00+00:00)
Title: V8 crashed when regexp in line 196 reaches new lines or carriage returns

If a serialized php session contains strings with new line or carriage return chars, the `var match = part.match(/^((?:.*?[;\}])+)([^;\}]+?)$/)` call to `match`will never return. V8 will hang.

I added a line replacing these chars with spaces, to keep the correct length of the data segments as defined in the PHP serialized format.

If you need a serialized string to verify this issue please just contact me.