NetBSD Problem Report #44977

From taca@back-street.net  Tue May 17 01:23:52 2011
Return-Path: <taca@back-street.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 40BDB63B8AC
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 17 May 2011 01:23:52 +0000 (UTC)
Message-Id: <20110517012348.F1B88158E63@www.back-street.net>
Date: Tue, 17 May 2011 10:23:48 +0900 (JST)
From: taca@back-street.net
Reply-To: taca@back-street.net
To: gnats-bugs@gnats.NetBSD.org
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
>Organization:

>Environment:


System: NetBSD ns.back-street.net 5.99.51 NetBSD 5.99.51 (HPMICRO) #62: Thu Apr 28 14:29:53 JST 2011 taca@reef.back-street.net:/var/obj/sys/arch/amd64/compile/HPMICRO amd64
Architecture: x86_64
Machine: amd64
>Description:
	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.

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

>Unformatted:

NetBSD Home
NetBSD PR Database Search

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