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:51 -0500 |
commit | 2ceb63deb2db905ac030130705e33d776a28472a (patch) | |
tree | 4122eed1d89bf193616516baebc5745e17cfbbc4 /src/backend/tcop/postgres.c | |
parent | 037529a11c96a09c85b8bbc443f8301067c0ef22 (diff) | |
download | postgresql-2ceb63deb2db905ac030130705e33d776a28472a.tar.gz postgresql-2ceb63deb2db905ac030130705e33d776a28472a.zip |
to_char(): prevent writing beyond the allocated buffer
Previously very long localized month and weekday strings could
overflow the allocated buffers, causing a server crash.
Reported and patch reviewed by Noah Misch. Backpatch to all
supported versions.
Security: CVE-2015-0241
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions