NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/54574: usr.bin/make/parse.c $Id: 1.231 drops core on NetBSD-5.2 in realpath(3)
The following reply was made to PR toolchain/54574; it has been noted by GNATS.
From: "Simon J. Gerraty" <sjg%juniper.net@localhost>
To: <gnats-bugs%netbsd.org@localhost>
Cc: <gnats-admin%netbsd.org@localhost>, <netbsd-bugs%netbsd.org@localhost>, <buhrow%nfbcal.org@localhost>,
<sjg%juniper.net@localhost>
Subject: Re: bin/54574: usr.bin/make/parse.c $Id: 1.231 drops core on NetBSD-5.2 in realpath(3)
Date: Wed, 25 Sep 2019 23:21:02 -0700
John Nemeth <jnemeth%cue.bc.ca@localhost> wrote:
> HISTORY
> The realpath() function call first appeared in 4.4BSD. In NetBSD =
7.0 the
> function was updated to accept a NULL pointer for the resolvedname
> argument.
> =
> POSIX says:
> =
> If resolved_name is a null pointer, the behavior of realpath() is
> implementation-defined.
> =
> parse.c:1.231 in ParseVErrorInternal() calls realpath() with a null
> pointer for resolved_name thus relying on the NetBSD 7.0 behaviour.
> This is a portability bug.
Thanks, will fix
Home |
Main Index |
Thread Index |
Old Index