Thread: pgsql: to_char(): prevent accesses beyond the allocated buffer

pgsql: to_char(): prevent accesses beyond the allocated buffer

From
Bruce Momjian
Date:
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

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/1628a0bbfa2e30cd52daaa3ae78961d301adad2f

Modified Files
--------------
src/backend/utils/adt/formatting.c |    4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)