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:50 -0500 |
commit | bc4d5f2e57379feb7a577d25da2681a77e7ca854 (patch) | |
tree | 6f837b2ae407197cc42a0e679b91b0e6d0c42350 /src/backend/tcop/postgres.c | |
parent | fe2526990b821efb9452fa8601ee216a487202ff (diff) | |
download | postgresql-bc4d5f2e57379feb7a577d25da2681a77e7ca854.tar.gz postgresql-bc4d5f2e57379feb7a577d25da2681a77e7ca854.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