Monday, August 30, 2021

Re: ports and printf("%n") (was: Re: CVS: cvs.openbsd.org: src)

Jeremie Courreges-Anglas <jca@wxcvbn.org> wrote:

> (cc'ing ports bulk builds herders)
>
> Hi folks,
>
> On Mon, Aug 30 2021, Theo de Raadt <deraadt@cvs.openbsd.org> wrote:
> > CVSROOT: /cvs
> > Module name: src
> > Changes by: deraadt@cvs.openbsd.org 2021/08/30 05:16:49
> >
> > Modified files:
> > lib/libc/stdio : vfprintf.c vfwprintf.c
> >
> > Log message:
> > jca and I converted %n to a syslog warning about a year ago, and the ports
> > ecosystem experienced a very good cleanup. Time has arrived to switch (as
> > planned) to syslog + abort, which will result in a coredump thus identifying
> > the remaining culprits in a more visible fashion.
> > vfprintf(3) and vfwprintf(3) man pages still require documentation changes.
> > with jca
>
> Ports may suffer from this at build time *and* runtime. Regarding
> issues at build time we can ease the debugging with the diff below.
> This is not intended for commit, also I intend to drop the _THIS_PORT
> getenv from libc before next release.

I've been arguing that corefiles will be produced, and the directory the
corefile lands in is a pretty strong hint.

But .. not my decision.

No comments:

Post a Comment