segmentation fault when serializing
karenetheridge opened this issue · comments
Karen Etheridge commented
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.
Reini Urban commented
demerphq: Bug in Cpanel::JSON::XS which is not validating that the "funky" SV it uses is the correct size. Sereal/Sereal#266 (comment)
Reini Urban commented
I've added now a magic to check against in my JSON struct. Fixed all the testcases.