Bug #14236: String is not zero-terminated
| From: | smullen at optushome dot com dot au | Date: | Mon, 26 Nov 2001 15:42:15 +0000 |
| Subject: | Bug #14236: String is not zero-terminated | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-71669@lists.php.net to get a copy of this message | ||
From: smullen@optushome.com.au
Operating system: linux
PHP version: 4.0CVS-2001-11-26
PHP Bug Type: mcrypt related
Bug description: String is not zero-terminated
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 bug report at: http://bugs.php.net/?id=14236&edit=1