enarx / ciborium

CBOR utilities
Other
222 stars 54 forks source link

deserialize_bytes with data bigger than 4k #97

Closed RCasatta closed 2 days ago

RCasatta commented 8 months ago

close https://github.com/enarx/ciborium/issues/96

The test format is not like the others but I didn't find a way to leverage the existing test suite to expose the error.

rjzak commented 8 months ago

Thank you for the PR!

rjzak commented 2 days ago

This won't work as-is because Ciborium aims to work in no_std environments, and vec! requires the standard library. Feel free to re-work and re-open if you wish. Perhaps it could be gated on #[cfg_attr(feature = "std")]