Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
php7.34257
php7-CVE-2024-3096.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php7-CVE-2024-3096.patch of Package php7.34257
Index: php-7.4.33/ext/standard/password.c =================================================================== --- php-7.4.33.orig/ext/standard/password.c +++ php-7.4.33/ext/standard/password.c @@ -260,6 +260,11 @@ static zend_string* php_password_bcrypt_ zval *zcost; zend_long cost = PHP_PASSWORD_BCRYPT_COST; + if (memchr(ZSTR_VAL(password), '\0', ZSTR_LEN(password))) { + php_error_docref(NULL, E_ERROR, "Bcrypt password must not contain null character"); + return NULL; + } + if (options && (zcost = zend_hash_str_find(options, "cost", sizeof("cost")-1)) != NULL) { cost = zval_get_long(zcost); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor