Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
rebuilds
>
php4
> php-4.3.9-CVE-2006-1990.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-4.3.9-CVE-2006-1990.patch of Package php4
--- php-4.3.9/ext/standard/string.c.cve1990 +++ php-4.3.9/ext/standard/string.c @@ -672,15 +672,13 @@ /* Multiple character line break or forced cut */ if (linelength > 0) { chk = (int)(textlen/linelength + 1); + newtext = safe_emalloc(chk, breakcharlen, textlen + 1); alloced = textlen + chk * breakcharlen + 1; } else { chk = textlen; + newtext = safe_emalloc(textlen, (breakcharlen + 1), 1); alloced = textlen * (breakcharlen + 1) + 1; } - if (alloced <= 0) { - RETURN_FALSE; - } - newtext = emalloc(alloced); /* now keep track of the actual new text length */ newtextlen = 0;