ipld / js-dag-pb

An implementation of the DAG-PB spec for JavaScript (for use with multiformats or @ipld/block)
Other
13 stars 5 forks source link

fix: size>maxuint32 calculation bug #21

Closed rvagg closed 3 years ago

rvagg commented 3 years ago

Fixes: https://github.com/ipfs-shipyard/nft.storage/issues/217

This case hit a very awkward edge that's not already tested in the code that pre-calculates how large a block needs to be in order to pre-allocate prior to encoding into it.