forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8870e29
committed
Use snprintf not sprintf in pg_waldump's timestamptz_to_str.
This could only cause an issue if strftime returned a ridiculouslylong timezone name, which seems unlikely; and it wouldn't qualifyas a security problem even then, since pg_waldump (nee pg_xlogdump)is a debug tool not part of the server. But gcc 8 has started issuingwarnings about it, so let's use snprintf and be safe.Backpatch to 9.3 where this code was added.Discussion:https://postgr.es/m/21789.1529170195@sss.pgh.pa.us1 parente951f66 commit8870e29
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
0 commit comments
Comments
(0)