Re: [PATCH] for Bug #13052: Empty $key in mcrypt_generic_init causes segmentation fault
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@php.net
SRM: Site Resource Manager - www.vl-srm.net
---------------------------------------------------------------------
Thread (5 messages)