-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indexes are slurpy and allocates lots of memory #314
Comments
Once streaming index read is implemented, re-add the tests that are removed here |
The |
@rvagg we do not use indexes in Kubo, and I have already too much things to do. I opened it because as far as I understood in the discussion we had indexes that allocates might be an issue, however boost was not able to do a refactor use If consumers of indexes (boost) don't think this is an issue or don't care about it, then we can close this. |
Indexes datastructure are fully copied into memory when parsing an index.
There is no limit on how big thoses copies were (because practical indexes used by peoples are bigger than what would be a safe limit).
So if you parse an index from untrusted user input, they can send you a really big index and memory hog or OOM you.
Would be nice if we have a way to parse untrusted indexes without opening yourself to OOMs.
This was first attempted in #312 (see discussion in https://github.com/ipld/go-car-priv/pull/2):
But was reverted due to API breaking considerations (see discussion in the channel and https://github.com/ipld/go-car-priv/pull/18)):
See GHSA-9x4h-8wgm-8xfg
The text was updated successfully, but these errors were encountered: