News for hackers. Stuff that matters.
Re:MessagePack: like JSON, but fast and small by bmn__ on Tuesday March 10, 2020 @02:42PM (#22538226)
https://capnproto.org serialisation scheme skips the decoding. Does that make it not safe?
Re:MessagePack: like JSON, but fast and small by tebeka on Tuesday March 10, 2020 @02:52PM (#22538334)
Re:MessagePack: like JSON, but fast and small by strbean on Tuesday March 10, 2020 @03:27PM (#22538698)
None of those are serialization schemes. XML can be used for serialization, but if you look at the whole ecosystem it is a Turing-complete complexity monster, so of course it isn't safe.
Re:MessagePack: like JSON, but fast and small by DougBTX on Tuesday March 10, 2020 @03:32PM (#22538736)
It depends on what constraints apply to the data. Any bit pattern could be used for an int, but to guarantee a UTF-8 string it would need to be validated.