Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP5:GA
php8.24708
php8-CVE-2022-31625.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php8-CVE-2022-31625.patch of Package php8.24708
Index: php-8.0.10/ext/pgsql/pgsql.c =================================================================== --- php-8.0.10.orig/ext/pgsql/pgsql.c +++ php-8.0.10/ext/pgsql/pgsql.c @@ -1122,7 +1122,7 @@ PHP_FUNCTION(pg_query_params) } else { zend_string *param_str = zval_try_get_string(tmp); if (!param_str) { - _php_pgsql_free_params(params, num_params); + _php_pgsql_free_params(params, i); RETURN_THROWS(); } params[i] = estrndup(ZSTR_VAL(param_str), ZSTR_LEN(param_str)); @@ -3920,8 +3920,8 @@ PHP_FUNCTION(pg_send_execute) params[i] = NULL; } else { zend_string *tmp_str = zval_try_get_string(tmp); - if (UNEXPECTED(!tmp)) { - _php_pgsql_free_params(params, num_params); + if (UNEXPECTED(!tmp_str)) { + _php_pgsql_free_params(params, i); return; } params[i] = estrndup(ZSTR_VAL(tmp_str), ZSTR_LEN(tmp_str));
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