Skip to content
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

>2Gb of memory used for decoding ~1kb file #6

Closed
Shnatsel opened this issue May 7, 2020 · 1 comment
Closed

>2Gb of memory used for decoding ~1kb file #6

Shnatsel opened this issue May 7, 2020 · 1 comment

Comments

@Shnatsel
Copy link
Contributor

Shnatsel commented May 7, 2020

The attached files, most of which are under 1Kb in size, require more than 2Gb of RAM to decode. Worse, this occurs in an allocation internal to the code - this memory will be consumed even if the client code uses 4Kb buffers.

Sample files triggering the issue: lz4-fear-decode-ooms.zip

The code to reproduce the issue can be found in #5

@Shnatsel
Copy link
Contributor Author

Shnatsel commented May 7, 2020

The smallest sample triggering the issue is just 20 bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant