Commit Graph

77 Commits (9d49837d7144e27ad8ea8918acb28f9872cb1585)

Author SHA1 Message Date
Bruce Momjian c8e1ba736b Update copyright for 2023 3 years ago
Tom Lane 450ee70126 Use libc's snprintf, not sprintf, for special cases in snprintf.c. 3 years ago
Peter Eisentraut 9fd45870c1 Replace many MemSet calls with struct initialization 3 years ago
Bruce Momjian 27b77ecf9f Update copyright for 2022 4 years ago
Tom Lane 3c17926eed Speed up printing of integers in snprintf.c. 4 years ago
Tom Lane 3779ac62d7 Make printf("%s", NULL) print "(null)" instead of crashing. 4 years ago
Bruce Momjian ca3b37487b Update copyright for 2021 5 years ago
Alvaro Herrera 17cc133f01
Dial back -Wimplicit-fallthrough to level 3 5 years ago
Alvaro Herrera 3e9744465d
Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 5 years ago
Bruce Momjian 7559d8ebfa Update copyrights for 2020 6 years ago
Tom Lane 91da65f4ac Remove a couple of unnecessary if-tests. 6 years ago
Peter Eisentraut 5d3587d14b Fix most -Wundef warnings 6 years ago
Tom Lane 8255c7a5ee Phase 2 pgindent run for v12. 6 years ago
Bruce Momjian 97c39498e5 Update copyright for 2019 7 years ago
Tom Lane d2b0b60e71 Improve our response to invalid format strings, and detect more cases. 7 years ago
Andrew Dunstan 7f284debaf Disable MSVC warning caused by recent snprintf.c changes 7 years ago
Tom Lane f1885386f6 Make float exponent output on Windows look the same as elsewhere. 7 years ago
Tom Lane 7767aadd94 Fix omissions in snprintf.c's coverage of standard *printf functions. 7 years ago
Tom Lane 6eb3eb577d Improve snprintf.c's handling of NaN, Infinity, and minus zero. 7 years ago
Andres Freund d173652797 Replace uint64 use introduced in 4868e44685 in light of 595a0eab7f. 7 years ago
Andres Freund 4868e44685 Ensure that snprintf.c's fmtint() doesn't overflow when printing INT64_MIN. 7 years ago
Tom Lane 595a0eab7f Rationalize snprintf.c's handling of "ll" formats. 7 years ago
Tom Lane 6d842be6c1 Provide fast path in snprintf.c for conversion specs that are just "%s". 7 years ago
Tom Lane abd9ca377d Make assorted performance improvements in snprintf.c. 7 years ago
Tom Lane 625b38ea0e Set snprintf.c's maximum number of NL arguments to be 31. 7 years ago
Tom Lane d6c55de1f9 Implement %m in src/port/snprintf.c, and teach elog.c to rely on that. 7 years ago
Tom Lane 805889d7d2 Make snprintf.c follow the C99 standard for snprintf's result value. 7 years ago
Alvaro Herrera f2c587067a Rethink how to get float.h in old Windows API for isnan/isinf 7 years ago
Tom Lane 0c62356cc8 Add an assertion that we don't pass NULL to snprintf("%s"). 8 years ago
Andres Freund fffd651e83 Rewrite strnlen replacement implementation from 8a241792f9. 8 years ago
Andres Freund 8a241792f9 Add pg_strnlen() a portable implementation of strlen. 8 years ago
Tom Lane c7b8998ebb Phase 2 of pgindent updates. 8 years ago
Tom Lane 0c071936e9 Revert error-throwing wrappers for the printf family of functions. 10 years ago
Noah Misch 16304a0134 Add error-throwing wrappers for the printf family of functions. 10 years ago
Noah Misch cac18a76bb Permit use of vsprintf() in PostgreSQL code. 10 years ago
Andres Freund ff8ca3b04c Add missing float.h include to snprintf.c. 11 years ago
Bruce Momjian 29725b3db6 port/snprintf(): fix overflow and do padding 11 years ago
Bruce Momjian 0a78320057 pgindent run for 9.4 12 years ago
Tom Lane ac4ef637ad Allow use of "z" flag in our printf calls, and use it where appropriate. 12 years ago
Bruce Momjian bf50caf105 pgindent run before PG 9.1 beta 1. 15 years ago
Magnus Hagander 9f2e211386 Remove cvs keywords from all files. 15 years ago
Bruce Momjian 239d769e7e pgindent run for 9.0, second run 15 years ago
Tom Lane 206b1e558a Fix our printf implementation to follow spec: if a star parameter 18 years ago
Bruce Momjian 9dd3ec6c3b Remove advertising clause from Berkeley BSD-licensed files, per 19 years ago
Andrew Dunstan 796a3f373a protect vfprintf from hijacking by Windows gettext just like other members of the *printf family. 19 years ago
Bruce Momjian f99a569a2e pgindent run for 8.2. 19 years ago
Tom Lane 1daac8e165 Document return-value conventions used by this implementation, per 20 years ago
Tom Lane 3311c7669a Fix a rather sizable number of problems in our homegrown snprintf, such as 20 years ago
Bruce Momjian 1dc3498251 Standard pgindent run for 8.1. 20 years ago
Tom Lane 06e1d62689 Fix a whole bunch of #includes that were either wrong or redundant. 20 years ago