]> 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:52 +0000 (10:00 -0500)
commit56b970f2e98853bee7205022df4c5d38bafacdf5
tree7ab41b5375c14aac7bc70dda5d98f4976f2672c3
parent611e110aabdf4b5edfed178b34ba662b1549674a
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