php-developer-list | 2001122
Date: 12/31/01
- Next message: Giancarlo Niccolai: "[PHP-DEV] Forwarding: I found a FIX for a but and don't know who to contact."
- Previous message: Pierre-Alain Joye: "Re: [PHP-DEV] MOPS Benchmark"
- In reply to: sitnikov <email protected>: "[PHP-DEV] Bug #14692: Crash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 14692
Updated by: derick
Reported By: sitnikov <email protected>
Old Status: Suspended
Status: Closed
Bug Type: mcrypt related
Operating System: Linux
PHP Version: 4.1.0
New Comment:
It's fixed in mcrypt now. This will be in the next release of it (2.4.19).
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-12-26 04:46:58] derick <email protected>
From: Nikos Mavroyanopoulos <nmav <email protected>>
To: mcrypt-dev <email protected>
Subject: Re: [mcrypt-dev] Crash
On Tue, 25 Dec 2001 18:57:29 +0100 (CET)
Derick Rethans <d.rethans <email protected>> wrote:
> Hello,
> I get a crash with the 2nd program (and I know "gost" is not a
> algorithm_mode, but it shouldn't crash IMO).
Yes, it shouldn't crash. I'll check it (after the vacations!).
Thank you.
------------------------------------------------------------------------
[2001-12-25 11:41:06] derick <email protected>
This is not a PHP bug, but in libmcrypt. I reported this to the author of the library.
This is the C code I used for it:
#include <unistd.h>
#include <mcrypt.h>
void main (void)
{
int res;
res = mcrypt_module_is_block_algorithm ("gost", NULL);
}
This one works, the next does not (segfaults):
#include <unistd.h>
#include <mcrypt.h>
void main (void)
{
int res;
res = mcrypt_module_is_block_algorithm_mode ("gost", NULL);
}
regards,
Derick
------------------------------------------------------------------------
[2001-12-25 11:18:30] sitnikov <email protected>
i use php-4.1.1
------------------------------------------------------------------------
[2001-12-25 11:18:16] sitnikov <email protected>
I know what it is buggy script, but it not the justification for "Segmentation".
Your script work for me and print "false"
------------------------------------------------------------------------
[2001-12-25 11:09:03] derick <email protected>
Hello,
your script is buggy, GOST, is not a mode, but an algorithm.
It indeed crashes with this code, but to me it seems like it is an libmcrypt problem.
If you use this:
<?
if (mcrypt_module_is_block_algorithm(MCRYPT_GOST))
echo "true\n";
else
echo "false\n";
?>
it works, but it returns true if it is NOT a block algorithm, which is a bug in the extension.
(mcrypt returns 1 if it is a block algorithm).
Can you confirm that it does not crash with the script I pasted?
Derick
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=14692
Edit this bug report at http://bugs.php.net/?id=14692&edit=1
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Giancarlo Niccolai: "[PHP-DEV] Forwarding: I found a FIX for a but and don't know who to contact."
- Previous message: Pierre-Alain Joye: "Re: [PHP-DEV] MOPS Benchmark"
- In reply to: sitnikov <email protected>: "[PHP-DEV] Bug #14692: Crash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

