]> granicus.if.org Git - postgresql/commit
Fix a rather sizable number of problems in our homegrown snprintf, such as
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Dec 2005 02:39:43 +0000 (02:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Dec 2005 02:39:43 +0000 (02:39 +0000)
commitfcda95d98711215550110e918ec7b86b96ba494a
treea029587f707f0066a596bf8166d6ff3ac3ba0340
parent3824460544e223b3e0d529e3a6313a533a7c5726
Fix a rather sizable number of problems in our homegrown snprintf, such as
incorrect implementation of argument reordering, arbitrary limit of output
size for sprintf and fprintf, willingness to access more bytes than "%.Ns"
specification allows, wrong formatting of LONGLONG_MIN, various field-padding
bugs and omissions.  I believe it now accurately implements a subset of
the Single Unix Spec requirements (remaining unimplemented features are
documented, too).  Bruce Momjian and Tom Lane.
src/port/snprintf.c