]> granicus.if.org Git - postgresql/commit
to_char(): prevent accesses beyond the allocated buffer
authorBruce Momjian <bruce@momjian.us>
Mon, 2 Feb 2015 15:00:44 +0000 (10:00 -0500)
committerBruce Momjian <bruce@momjian.us>
Mon, 2 Feb 2015 15:00:50 +0000 (10:00 -0500)
commit5ae3bf1af34082f3b53955053ce11a6f20b1b751
treefb00c8f1c5deb93405eb76cad1e9397bc96f9297
parent611037d5d46c10e1db5313acce74af328f105445
to_char():  prevent accesses beyond the allocated buffer

Previously very long field masks for floats could access memory
beyond the existing buffer allocated to hold the result.

Reported by Andres Freund and Peter Geoghegan. Backpatch to all
supported versions.

Security: CVE-2015-0241
src/backend/utils/adt/formatting.c