Re: [PHP-DEV] [PATCH] for Bug #13052: Empty $key in mcrypt_generic_init causes segmentation fault From: derick <email protected>
Date: 08/30/01

On Thu, 30 Aug 2001, Alexander Wirtz wrote:

> There's is a check on the max keysize, but no check, if the keysize is
> larger than 0. So the simple patch I attached to this mail should hopefully
> be sufficient.

While your idea is ok, the patch is not. You simply return from the
function without freeing already allocated memory. I assigned this bug to
myself now, and will make a patch.

Derick

---------------------------------------------------------------------
        PHP: Scripting the Web - www.php.net - derick <email protected>
             SRM: Site Resource Manager - www.vl-srm.net
---------------------------------------------------------------------

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>