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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9bed827b18cc4f27fb7cd7c02ad301519eca6d29
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-08-17T14:38:07Z
Releases: 12.0
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.

Files

PathChange+/−
config/c-library.m4 modified +8 −3
configure modified +6 −3