alignment problem in monitor_fdpass.c
Jim Knoble
jmknoble at pobox.com
Thu Feb 21 04:09:29 EST 2008
Circa 2008-02-20 04:31 dixit John Hay:
: After FreeBSD changed from using -O2 to using -O on their ARM port, I
: found that sshd stopped working. (gcc version 4.2.1 20070719 [FreeBSD])
: I have downloaded openssh-SNAP-20080220.tar.gz and the code still look
: the same.
:
: Anyway looking into it, I found that the problem is in monitor_fdpass.c
: in the functions mm_send_fd and mm_receive_fd. Using -O2 used to align
: the tmp array on a 4 byte boundary and using -O does not. On
: architectures that do not like unaligned accesses this will break.
It's best to file a bug report about this at the OpenSSH bug tracker:
http://www.openssh.com/report.html
The developers are more likely to see it (and not to lose track of it).
--
jim knoble | jmknoble at pobox.com | http://www.pobox.com/~jmknoble/
(GnuPG key ID: 6F39C2CC >>>>>> http://www.pobox.com/~jmknoble/keys/ )
(GnuPG fingerprint: 5024:D578:7CF4:5660:7269::F6F3:B919:9307:6F39:C2CC)
+----------------------------------------------------------------------+
|[L]iberty, as we all know, cannot flourish in a country that is perma-|
| nently on a war footing, or even a near-war footing. --Aldous Huxley|
+----------------------------------------------------------------------+
More information about the openssh-unix-dev
mailing list