filecoin-project / go-amt-ipld

Implementation of an array mapped trie using go and ipld
Other
9 stars 15 forks source link

More validation for loaded blocks required #25

Closed rvagg closed 3 years ago

rvagg commented 4 years ago

Either in loadNode() or Node#UnmarshalCBOR() we should be checking that:

Any other variants should be rejected as malformed.

If this isn't done in Node#UnmarshalCBOR(), the check will need to also be applied in LoadAMT to the root node, which is deserialized along with its containing parent (Root).

Stebalien commented 3 years ago

This has been fixed.