]> git.ipfire.org Git - thirdparty/postgresql.git/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:52 +0000 (10:00 -0500)
commit611e110aabdf4b5edfed178b34ba662b1549674a
tree1ec35a764937c3aed6f87e4499ecffdd4d7f7025
parent5828f7c6682652f43f5365cf0cd5091f3d63d4d5
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