]> granicus.if.org Git - postgresql/commit
Fix configure's snprintf test so it exposes HP-UX bug.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 17 Aug 2018 14:37:59 +0000 (10:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 17 Aug 2018 14:38:07 +0000 (10:38 -0400)
commit9bed827b18cc4f27fb7cd7c02ad301519eca6d29
tree0a361c05eddcc0507384994f3b03071d7fb3bceb
parentb94f7b5350e97ef0587c0c64aed6eb940d964c06
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.
config/c-library.m4
configure