diff options
author | Bruce Momjian | 2015-02-02 15:00:45 +0000 |
---|---|---|
committer | Bruce Momjian | 2015-02-02 15:00:50 +0000 |
commit | bc4d5f2e57379feb7a577d25da2681a77e7ca854 (patch) | |
tree | 6f837b2ae407197cc42a0e679b91b0e6d0c42350 /src/tutorial | |
parent | fe2526990b821efb9452fa8601ee216a487202ff (diff) |
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/tutorial')
0 files changed, 0 insertions, 0 deletions