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

Add null check in CsrfFilter and CsrfWebFilter #9559

Closed
wants to merge 0 commits into from

Conversation

ziqiangai
Copy link
Contributor

Solve the problem that CsrfFilter and CsrfWebFilter throws NPE exception when comparing two byte array is equal in low JDK version.
When JDK version is lower than 1.8.0_45,method java.security.MessageDigest#isEqual does not verify whether the two arrays are null.
And the above two class call this method without null judgment.

ZiQiang Zhao1694392889@qq.com
Because I'm not familiar with git, I mistakenly closed the old pr #9524 . @jzheaux

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 6, 2021
@ziqiangai ziqiangai closed this Apr 6, 2021
@rwinch rwinch added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 6, 2021
@rwinch
Copy link
Member

rwinch commented Apr 6, 2021

Duplicate of gh-9561

@rwinch rwinch marked this as a duplicate of #9561 Apr 6, 2021
@rwinch rwinch self-assigned this Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants