Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
rebuilds
>
php4
> php-4.3.9-phpvar.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-4.3.9-phpvar.patch of Package php4
Fix segfault introduced in CAN-2004-0958 fix; upstream #30442. --- php-4.3.9/main/php_variables.c.phpvar +++ php-4.3.9/main/php_variables.c @@ -129,7 +129,9 @@ if (!ip) { /* PHP variables cannot contain '[' in their names, so we replace the character with a '_' */ *(index_s - 1) = '_'; - index_len = var_len = strlen(index); + if (index) { + index_len = var_len = strlen(index); + } goto plain_var; return; }