openssh-portable segmentation faults

Dimitry Andric dim at FreeBSD.org
Thu Feb 7 23:50:33 UTC 2013


On 2013-02-08 00:16, Dimitry Andric wrote:
> On 2013-02-07 22:14, Dewayne Geraghty wrote:
> ...
>> Bryan, Dimitry,
>> Thank-you for your interest.
>> Unfortunately we have no debugging tools on any of the machines. I'll build one today and reproduce.
...
> Executive summary: we recently imported a strnvis() implementation from
> NetBSD, which has differently ordered arguments from the strnvis()
> implementation in OpenBSD.  When OpenSSH calls it with arguments ordered
> in the way OpenBSD expects, the function segfaults.

And here is a patch, which works for me.  It simply disables use of
libc's strnvis(), forcing the port to use its own bundled version.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: security__openssh-portable-1.diff
Type: text/x-diff
Size: 560 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130208/1cb57cfc/attachment.diff>


More information about the freebsd-ports mailing list