NetBSD-Bugs archive

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

lib/44977: strnvis(3) incompatibility



>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@localhost:/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:
        
        


Home | Main Index | Thread Index | Old Index