php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14236 String is not zero-terminated
Submitted: 2001-11-26 10:42 UTC Modified: 2001-12-19 10:31 UTC
From: smullen at optushome dot com dot au Assigned:
Status: Closed Package: mcrypt related
PHP Version: 4.0CVS-2001-11-26 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: smullen at optushome dot com dot au
New email:
PHP Version: OS:

 

 [2001-11-26 10:42 UTC] smullen at optushome dot com dot 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-26 11:22 UTC] derick@php.net
Already known, assigning to myself.

Derick
 [2001-12-12 18:13 UTC] sniper@php.net
status -> assigned.
 [2001-12-13 15:46 UTC] 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-19 10:28 UTC] smullen at optushome dot com dot au
Bug is squished.
Thank you.
 [2001-12-19 10:31 UTC] derick@php.net
no problem!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 09:01:27 2025 UTC