Date: Sun, 23 May 2004 22:12:41 -0700 (PDT) From: Jeff King <peff-freebsd@peff.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/67111: port news/leafnode abort()s due to vsnprintf problems Message-ID: <200405240512.i4O5CfdR020629@www.freebsd.org> Resent-Message-ID: <200405240520.i4O5KM3S086936@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 67111 >Category: ports >Synopsis: port news/leafnode abort()s due to vsnprintf problems >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 23 22:20:21 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Jeff King >Release: >Organization: >Environment: >Description: In 1.9.54, fetchnews.c, line 1625, there is a call to ln_log() that contains the formatting string "%p". This is eventually passed to vsnprintf. The included version doesn't support %p, and calls abort(). >How-To-Repeat: >Fix: Replacing the %p with %d fixes the abort() (though gcc complains about the pointer/integer formatting; a better fix might be to avoid printing a pointer that is likely meaningless to the user). >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405240512.i4O5CfdR020629>