On Sun, May 16, 2010 at 08:14:08PM -0700, Mosh wrote:
> Dominique,
> 
> I am able to reproduce the crash on 64bit linux (gcc
> x86_64-linux-gnu), the fix is:
> 
> 1  blowfish blocks should always be 32bits: i.e. unsigned int, not
> unsigned long.

Autoconf has the AC_TYPE_UINT32_T[0] macro which can be used to ensure
there's a uint32_t defined.

> 2. My BIG_ENDIAN macro usage was incompatible with linux/stdlib, this
> was caught by the self test.

There's also the AC_C_BIGENDIAN[1] macro that may be useful for
detecting little-endian vs. big-endian.

[0]: 
http://www.gnu.org/software/autoconf/manual/html_node/Particular-Types.html#index-AC_005fTYPE_005fUINT32_005fT-791
[1]: 
http://www.gnu.org/software/autoconf/manual/html_node/C-Compiler.html#index-AC_005fC_005fBIGENDIAN-873
-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui