is deserializing untrusted buffers safe? #547
-
The official docs say:
https://capnproto.org/cxx.html#security-tips This is under the C++ section, and I'm assuming it's implementation-specific. Is the Rust implementation safe when deserializing untrusted buffers? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
capnproto-rust uses a lot of |
Beta Was this translation helpful? Give feedback.
capnproto-rust uses a lot of
unsafe
code, so it's difficult to assert that it is truly "safe". What I can say is that I have run a lot of fuzz testing on it, and a decent number of people seem to be using it. It's designed to return errors on malformed inputs, so if something else happens (via e.g. out-of-bounds access) then that's a bug that I would urgently fix.