Hacker News new | ask | show | jobs
by bmn__ 2297 days ago
https://capnproto.org serialisation scheme skips the decoding. Does that make it not safe?
2 comments

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.
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.