Bug #14236 Updated: String is not zero-terminated
| From: | smullen at optushome dot com dot au | Date: | Wed, 19 Dec 2001 15:28:08 +0000 |
| Subject: | Bug #14236 Updated: String is not zero-terminated | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74415@lists.php.net to get a copy of this message | ||
ID: 14236
User updated by: smullen@optushome.com.au
Reported By: smullen@optushome.com.au
Status: Closed
Bug Type: mcrypt related
Operating System: linux
PHP Version: 4.0CVS-2001-11-26
New Comment:
Bug is squished.
Thank you.
Previous Comments:
------------------------------------------------------------------------
[2001-12-13 15:46:52] derick@php.net
Should be fixed in CVS, can you try (in about a day) the
latest snapshot from snaps.php.net ?
Derick
------------------------------------------------------------------------
[2001-12-12 18:13:00] sniper@php.net
status -> assigned.
------------------------------------------------------------------------
[2001-11-26 11:22:59] derick@php.net
Already known, assigning to myself.
Derick
------------------------------------------------------------------------
[2001-11-26 10:42:15] smullen@optushome.com.au
require_once 'Crypt/CBC.php';
$key = "secretkey";
$msg = "This is my scret message";
$x = new Crypt_CBC($key,"BLOWFISH");
echo $x->encrypt($msg);
Result:
/usr/local/lib/php/Crypt/CBC.php(228) : Warning - String is not zero-terminated (ü,máùZZZZa)
(source: ./zend_execute.c:449)
I have tried many combinations & commands, mcrypt always produces the error - but actually
operates correctly apart from the always visible warning.
I have used mcrypt 2.4.17/2.4.18 with same result, current CVS, 4.0.6 and many CVS's over the
last month.
./configure --with-mysql=/usr --with-apxs=/usr/sbin/apxs --with-tsrm-pthreads --with-gd=/usr/gd
--enable-gd-native-ttf --with-freetype-dir=/usr/include/freetype2/freetype --with-jpeg-dir=/usr
--with-png-dir=/usr --with-zlib-dir=/usr --enable-debug --with-imap=shared,/usr --with-imap-ssl
--with-kerberos --with-mcrypt=shared,/usr --with-dom=shared,/usr
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14236&edit=1