Skip to content

hash_equals: Don't leak length difference. (Bug 67939) #791

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

Closed
wants to merge 1 commit into from

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Aug 31, 2014

Reopened against 5.6 branch: #792

hash_equals leaks difference in length of compared strings (this is a documented behavior).
This implementation ported from Symfony don't.

The discussion started in a try to use hash_equals in Symfony: symfony/symfony#11797

hash_equals leaks difference in length of compared strings.
This implementation ported from Symfony don't.
@dunglas dunglas changed the title hash_equals: Don't leak length difference. hash_equals: Don't leak length difference. (Bug 67939) Aug 31, 2014
@dunglas dunglas closed this Aug 31, 2014
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.

1 participant