Hello,
this issue was already cleared as bogus
safe_emalloc already takes care of the one extra byte that should get added.
safe_emalloc does allocate param1 * param2 + param3 bytes
result = (unsigned char *)safe_emalloc(((length + 2) / 3) * 4, sizeof(char), 1);
would become
result = (unsigned char *)safe_emalloc(((length + 2) / 3) * 4 + 1, sizeof(char), 1);
Stefan
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php