On Mon, Jan 30, 2006 at 11:41:24PM +0100, Bastian Kleineidam wrote:
> severity 350088 grave
> reassign 350088 libmhash2 0.9.4a-1
> retitle 350088 libmhash2: crc32 segfaults on big endian machines
> tags 350088 + patch
> thanks
> 
> Hi,
> 
> this is a bug in the new libmhash2 version 0.9.4a. The severity is grave
> since it breaks existing software using the library (in this case
> gringotts).
> Uwe, if you want you can recompile libmhash2 with the attached patch and
> see if it works. I cannot test this since the bug only occurs on big
> endian machines like your powerpc.
The patch alone doesn't seem to be enough. After applying the patch
it crashes in _mhash_gen_key_s2k_simple() when calling
mutils_malloc(total). _mhash_gen_key_s2k_simple() has the following
code

total = times * block_size;
times = key_size / block_size;

I suppose those two lines have to be swapped. The block_size has
a very reasonable value of 20 on my system.

  Uwe


-- 
  MMK GmbH, Fleyer Str. 196, 58097 Hagen
  [EMAIL PROTECTED]
  Tel: +2331 840446    Fax: +2331 843920

Attachment: signature.asc
Description: Digital signature

Reply via email to