cvs: php-src(PHP_5_2) /ext/mcrypt mcrypt.c

From: Date: Thu, 15 Feb 2007 01:40:36 +0000
Subject: cvs: php-src(PHP_5_2) /ext/mcrypt mcrypt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-43066@lists.php.net to get a copy of this message
iliaa Thu Feb 15 01:40:36 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/mcrypt mcrypt.c Log: use constant http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/mcrypt.c?r1=1.91.2.3.2.8&r2=1.91.2.3.2.9&diff_format=u Index: php-src/ext/mcrypt/mcrypt.c diff -u php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.8 php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.9 --- php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.8 Thu Feb 15 01:15:45 2007 +++ php-src/ext/mcrypt/mcrypt.c Thu Feb 15 01:40:36 2007 @@ -16,7 +16,7 @@ | Derick Rethans <derick@derickrethans.nl> | +----------------------------------------------------------------------+ */ -/* $Id: mcrypt.c,v 1.91.2.3.2.8 2007/02/15 01:15:45 iliaa Exp $ */ +/* $Id: mcrypt.c,v 1.91.2.3.2.9 2007/02/15 01:40:36 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1242,7 +1242,7 @@ return; } - if (size <= 0 || size >= 2147483647) { + if (size <= 0 || size >= INT_MAX) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can not create an IV with a size of less then 1 or greater then %d", INT_MAX); RETURN_FALSE; }

« previous php.cvs (#43066) next »