libipld icon indicating copy to clipboard operation
libipld copied to clipboard

dag-cbor-derive should not assume a length while decoding

Open dvc94ch opened this issue 4 years ago • 2 comments

dvc94ch avatar Aug 02 '21 10:08 dvc94ch

describe this one, seems to be in gen.rs ?

molekilla avatar Aug 13 '21 12:08 molekilla

This is about being more liberal in what we accept when parsing, see for example https://github.com/ipfs-rust/libipld/blob/d92d261f4831f943ab243aa215d871a5734e8d89/dag-cbor-derive/src/gen.rs#L239-L241 and https://github.com/ipfs-rust/libipld/blob/d92d261f4831f943ab243aa215d871a5734e8d89/dag-cbor-derive/src/gen.rs#L298-L300

wngr avatar Aug 13 '21 12:08 wngr