diff options
author | Bruce Momjian | 2015-02-02 15:00:45 +0000 |
---|---|---|
committer | Bruce Momjian | 2015-02-02 15:00:51 +0000 |
commit | c6c6aa288c7d2835f587e89847c7355d43e548e3 (patch) | |
tree | 6e3090fc25f71d0e95cc5e82680afc387361c86a /src/include/miscadmin.h | |
parent | e09651e9d90011ff634ac1c10c8e67e3881687c8 (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/include/miscadmin.h')
0 files changed, 0 insertions, 0 deletions