This repository was archived by the owner on May 18, 2024. It is now read-only.

Description
What steps will reproduce the problem?
1. build on sparc (i suppose any platform that doesn't forgive unaligned writes)
2. run speedtest
3. you'll get bus error on decode test (the second line)
> What version of the product are you using? On what operating system?
$ uname -a
SunOS [] 5.10 Generic_118833-24 sun4v sparc SUNW,Sun-Fire-T200
my guess this happens because of unaligned write in modp_b64.c line 152
specificaly this fragment worries me:
*destInt = x << 8;
p += 3;
destInt = (uint32_t*)p;
(here at some point you'll have uint32_t* pointing to p + 3, p + 6, etc.) and
bang.
Original issue reported on code.google.com by [email protected]
on 21 Jun 2007 at 3:35