]> 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:50 +0000 (10:00 -0500)
commite09651e9d90011ff634ac1c10c8e67e3881687c8
tree31185f24ab02c37105a86c5a5f07253f9d8b2d94
parent5ae3bf1af34082f3b53955053ce11a6f20b1b751
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