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

[PATCH v1] linux-gen: ipsec: fix sliding window shifts #697

Closed
wants to merge 1 commit into from

Conversation

lumag
Copy link

@lumag lumag commented Sep 11, 2018

If shift is greater than window bit-width, bit shift results in
undefined behaviour. Rewrite code to excplicitly set the mask in such
cases.

Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org
Fixes: https://bugs.linaro.org/show_bug.cgi?id=3999

If shift is greater than window bit-width, bit shift results in
undefined behaviour. Rewrite code to excplicitly set the mask in such
cases.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Fixes: https://bugs.linaro.org/show_bug.cgi?id=3999
@muvarov muvarov changed the title linux-gen: ipsec: fix sliding window shifts [PATCH v1] linux-gen: ipsec: fix sliding window shifts Sep 11, 2018
@Bill-Fischofer-Linaro
Copy link
Contributor

@JannePeltonen Please review this PR.

@JannePeltonen
Copy link
Collaborator

Looks good.
Reviewed-by: Janne Peltonen janne.peltonen@nokia.com

@muvarov
Copy link
Contributor

muvarov commented Sep 12, 2018

Merged.

@muvarov muvarov closed this Sep 12, 2018
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.

None yet

4 participants