cvs: php4(PHP_4_3) /ext/mcrypt mcrypt.c

From: Date: Fri, 29 Nov 2002 15:57:39 +0000
Subject: cvs: php4(PHP_4_3) /ext/mcrypt mcrypt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16753@lists.php.net to get a copy of this message
derick Fri Nov 29 10:57:39 2002 EDT Modified files: (Branch: PHP_4_3) /php4/ext/mcrypt mcrypt.c Log: - Fix memleak (patch by Oleg.Roitburd@lycos-europe.com) #- I don't merge this to HEAD right away, as my current development tree # has a lot of modifications, of course I did this change there too. Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.77 php4/ext/mcrypt/mcrypt.c:1.77.4.1 --- php4/ext/mcrypt/mcrypt.c:1.77 Wed Jun 26 05:09:35 2002 +++ php4/ext/mcrypt/mcrypt.c Fri Nov 29 10:57:39 2002 @@ -16,7 +16,7 @@ | Derick Rethans <d.rethans@jdimedia.nl> | +----------------------------------------------------------------------+ */ -/* $Id: mcrypt.c,v 1.77 2002/06/26 09:09:35 derick Exp $ */ +/* $Id: mcrypt.c,v 1.77.4.1 2002/11/29 15:57:39 derick Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1463,6 +1463,7 @@ n = read_bytes; close(fd); if (n < size) { + efree(iv); php_error(E_WARNING, "%s(): Could not gather sufficient random data", get_active_function_name(TSRMLS_C)); RETURN_FALSE; }

« previous php.cvs (#16753) next »