Skip to content

Fixed #74099 - Memory leak with openssl_encrypt() #2389

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

andrewnester
Copy link
Contributor

Fix for https://bugs.php.net/bug.php?id=74099

Actually changes are following:

  1. (!enc || data_len > 0) was changed to (!enc || data_len >= 0)
  2. but data_len is unsigned that's why data_len >= 0 is always true and condition was removed.

@andrewnester
Copy link
Contributor Author

@krakjoe seems like CI failure is not related to this fix, could you please confirm?

@nikic nikic added the Bug label Feb 17, 2017
@nikic
Copy link
Member

nikic commented Feb 17, 2017

Merged via 15b8b12, thanks!

@bukka
Copy link
Member

bukka commented Feb 21, 2017

I have no idea why I added that check. It doesn't make sense to me now. Probably some weird confusion... :)

Anyway thanks for fixing that ;)

@andrewnester andrewnester deleted the 74099-openssl branch April 6, 2017 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants