pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix configure's snprintf test so it exposes HP-UX bug.
Date: Fri, 17 Aug 2018 14:38:41 +0000
Message-ID: <E1fqfth-0007iW-Cq@gemulon.postgresql.org> (raw)

Fix configure's snprintf test so it exposes HP-UX bug.

Since commit e1d19c902, buildfarm member gharial has been failing with
symptoms indicating that snprintf sometimes returns -1 for buffer
overrun, even though it passes the added configure check.  Some
google research suggests that this happens only in limited cases,
such as when the overrun happens partway through a %d item.  Adjust
the configure check to exercise it that way.  Since I'm now feeling
more paranoid than I was before, also make the test explicitly verify
that the buffer doesn't get physically overrun.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9bed827b18cc4f27fb7cd7c02ad301519eca6d29

Modified Files
--------------
config/c-library.m4 | 11 ++++++++---
configure           |  9 ++++++---
2 files changed, 14 insertions(+), 6 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1fqfth-0007iW-Cq@gemulon.postgresql.org>
Permalink:  ../E1fqfth-0007iW-Cq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fqfth-0007iW-Cq@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix configure's snprintf test so it exposes HP-UX bug.
  In-Reply-To: <E1fqfth-0007iW-Cq@gemulon.postgresql.org>
  References: <E1fqfth-0007iW-Cq@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox