diff options
author | Tom Lane | 2021-03-31 21:00:30 +0000 |
---|---|---|
committer | Tom Lane | 2021-03-31 21:00:30 +0000 |
commit | f1be740a991406d7885047beb971e1ff5dbe8b71 (patch) | |
tree | ad5014a0c27149149e033a8fd8c27e431bde569b /src/test/perl/PostgresNode.pm | |
parent | 8998e3cafa23632790787b8cc726998e84067259 (diff) |
Fix portability and safety issues in pqTraceFormatTimestamp.
Remove confusion between time_t and pg_time_t; neither
gettimeofday() nor localtime() deal in the latter.
libpq indeed has no business using <pgtime.h> at all.
Use snprintf not sprintf, to ensure we can't overrun the
supplied buffer. (Unlikely, but let's be safe.)
Per buildfarm.
Diffstat (limited to 'src/test/perl/PostgresNode.pm')
0 files changed, 0 insertions, 0 deletions