merkledag: CumulativeSize on directories overflows
Open
help wanted
kind/bug
status/deferred
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
#### Version information: 0.4.5
#### Type: bug
#### Priority: P4
#### Description:
CumulativeSize of a directory (or file) can reach ~16 EB maximum, after which it wraps around to 0B.
An example showing this overflow:
[`QmW4Zd911qv7uaRM2vi79YsfHvZ93skxiCxLnwpgpf7hp3`](https://ipfs.io/ipfs/QmW4Zd911qv7uaRM2vi79YsfHvZ93skxiCxLnwpgpf7hp3)
The directory looks like 11GB, but contains a lot of 'large' folders (like a zip bomb) + a data folder (here, the npm repo) of 723 GB.
[Here](https://ipfs.io/ipfs/QmbHijn6XQ27NyMP7sHybsEKsGMcSHs5LNYpQ4pkbLkAM5)'s the folder bomb used.
Contributor guide
Assessment
This issue has not been assessed yet.