With bounds checking patch for gcc-3.1 problems if using AES
Carson Gaspar
carson at taltos.org
Wed Jul 10 03:54:23 EST 2002
--On Tuesday, July 09, 2002 7:31 PM +0200 Gert Doering
<gert at greenie.muc.de> wrote:
> Thanks for pointing that out. It might explain the problems I have
> with ssh -2 on FreeBSD 2.2.x - everything core dumps as soon as it
> hits a DSA or RSA2 key. Possibly the memcpy in 2.2 works "the other way
> round" as compared to 3.x and 4.x, and thus it bombs there.
Try doing a s/memcpy/memmove/ on the appropriate source line. memove() is
guaranteed to do overlapping copies correctly. memcpy() is not. bcopy()
usually works - the BSD ones do, but at least some sysv versions do not.
UNIX98 bcopy() does handle overlapping ranges.
--
Carson
More information about the openssh-unix-dev
mailing list