rurban / Cpanel-JSON-XS

Improved fork of JSON-XS

Home Page:http://search.cpan.org/dist/Cpanel-JSON-XS/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

segmentation fault when serializing

karenetheridge opened this issue · comments

reference: Sereal/Sereal#266

If there was a FREEZE method that did nothing but die with a helpful message, that would still be better than a segfault. But FREEZE could also emit a hashref containing its constructor options and THAW could read that back in, also.

demerphq: Bug in Cpanel::JSON::XS which is not validating that the "funky" SV it uses is the correct size. Sereal/Sereal#266 (comment)

I've added now a magic to check against in my JSON struct. Fixed all the testcases.