]> granicus.if.org Git - postgresql/commit
to_char(): prevent writing beyond the allocated buffer
authorBruce Momjian <bruce@momjian.us>
Mon, 2 Feb 2015 15:00:45 +0000 (10:00 -0500)
committerBruce Momjian <bruce@momjian.us>
Mon, 2 Feb 2015 15:00:45 +0000 (10:00 -0500)
commit9241c84cbcb82174a7d986242f233aa6472c1129
tree3d3dfd5483951010e7a68f3f5d6993a2da508d4a
parent0150ab567bcf5e5913e2b62a1678f84cc272441f
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
src/backend/utils/adt/formatting.c