diff options
author | Bruce Momjian <bruce@momjian.us> | 2015-02-02 10:00:45 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2015-02-02 10:00:45 -0500 |
commit | 29725b3db67ad3f09da1a7fb6690737d2f8d6c0a (patch) | |
tree | e01ebc11d00aaa12c81243d3acae9f713591e368 /src/backend/tcop/postgres.c | |
parent | 9241c84cbcb82174a7d986242f233aa6472c1129 (diff) | |
download | postgresql-29725b3db67ad3f09da1a7fb6690737d2f8d6c0a.tar.gz postgresql-29725b3db67ad3f09da1a7fb6690737d2f8d6c0a.zip |
port/snprintf(): fix overflow and do padding
Prevent port/snprintf() from overflowing its local fixed-size
buffer and pad to the desired number of digits with zeros, even
if the precision is beyond the ability of the native sprintf().
port/snprintf() is only used on systems that lack a native
snprintf().
Reported by Bruce Momjian. Patch by Tom Lane. Backpatch to all
supported versions.
Security: CVE-2015-0242
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions