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

[ldm] Fix ZSTD_c_ldmHashRateLog bounds check #2819

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

terrelln
Copy link
Contributor

@terrelln terrelln commented Oct 8, 2021

There is no minimum value check, so the parameter could be negative.
Switch to the standard pattern of using BOUNDCHECK().

The bug was reported by Dan Carpenter and found by Smatch static
checker.

https://lore.kernel.org/all/20211008063704.GA5370@kili/

There is no minimum value check, so the parameter could be negative.
Switch to the standard pattern of using `BOUNDCHECK()`.

The bug was reported by Dan Carpenter and found by Smatch static
checker.

https://lore.kernel.org/all/20211008063704.GA5370@kili/
@terrelln terrelln merged commit 26486db into facebook:dev Oct 8, 2021
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

Successfully merging this pull request may close these issues.

2 participants