NetBSD Problem Report #44977

From  Tue May 17 01:23:52 2011
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 40BDB63B8AC
	for <>; Tue, 17 May 2011 01:23:52 +0000 (UTC)
Message-Id: <>
Date: Tue, 17 May 2011 10:23:48 +0900 (JST)
Subject: strnvis(3) incompatibility
X-Send-Pr-Version: 3.95

>Number:         44977
>Category:       lib
>Synopsis:       strnvis(3) incompatibility
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 17 01:25:00 +0000 2011
>Originator:     Takahiro Kambe
>Release:        NetBSD 5.99.51


System: NetBSD 5.99.51 NetBSD 5.99.51 (HPMICRO) #62: Thu Apr 28 14:29:53 JST 2011 amd64
Architecture: x86_64
Machine: amd64
	strnvis(3) has different argument from OpenBSD.

	It is declared in <vis.h> as:

		int	strnvis(char *, size_t, const char *, int);

	But, originally on OpenBSD:

		int	strnvis(char *, const char *, size_t, int);

	Compiler shows warning but not error in general.

	Compile openssh 5.8p2 outside of pkgsrc and start sshd.  It would
	crash on logging to syslog at first time.
	I don't know this difference is intentional or not.  But it is too
	bad that the same function has different argument.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.