NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/38396: sshd does not work



The following reply was made to PR bin/38396; it has been noted by GNATS.

From: Andrew Doran <ad%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/38396: sshd does not work
Date: Sun, 13 Apr 2008 14:51:04 +0100

 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/monitor_fdpass.c
 http://www.openbsd.org/cgi-bin/cvsweb/src/sys/kern/uipc_usrreq.c
 
 >                 char buf[CMSG_SPACE(sizeof(int))];
 
 Hmm, CMSG_SPACE() isn't constant on NetBSD as far as I can tell. Naively we
 could do this, but I haven't read enough of the surrounding code yet to know
 if its safe.
 
    1021        /* Sanity check the control message header. */
    1022        if (cm->cmsg_type != SCM_RIGHTS || cm->cmsg_level != SOL_SOCKET 
||
    1023            cm->cmsg_len > control->m_len)
    1024                return (EINVAL);
 
 Andrew
 


Home | Main Index | Thread Index | Old Index