Skip to content

Commit 493b2bf

Browse files
committed
Fix bug #72776 (Invalid parameter in memcpy function trough openssl_pbkdf2)
1 parent b044a74 commit 493b2bf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ PHP NEWS
66
. Fixed bug #73402 (Opcache segfault when using class constant to call a
77
method). (Laruence)
88

9+
- OpenSSL
10+
. Fixed bug #72776 (Invalid parameter in memcpy function trough
11+
openssl_pbkdf2). (Jakub Zelenka)
12+
913
10 Nov 2016, PHP 5.6.28
1014

1115
- Core:

ext/openssl/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4059,7 +4059,7 @@ PHP_FUNCTION(openssl_pbkdf2)
40594059
return;
40604060
}
40614061

4062-
if (key_length <= 0) {
4062+
if (key_length <= 0 || key_length > INT_MAX) {
40634063
RETURN_FALSE;
40644064
}
40654065

0 commit comments

Comments
 (0)