1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-17 06:41:24 +03:00
Tom Lane f44290b7b3 Avoid integer overflow and buffer overrun in hstore_to_json().
This back-patches commit 0c5783ff301ae3e470000c918bfc2395129de4c5 into the
9.3 branch.  At the time, Heikki just thought he was fixing an unlikely
integer-overflow scenario, but in point of fact the original coding was
hopelessly broken: it supposed that escape_json never enlarges the data
more than 2X, which is wrong on its face.  The revised code eliminates
making any a-priori assumptions about the output length.

Per report from Saul Costa.  The bogus code doesn't exist before 9.3,
so no other branches need fixing.
2014-11-04 16:54:59 -05:00
..
2013-03-10 17:35:36 -04:00
2013-03-10 17:35:36 -04:00
2011-04-25 22:27:11 +03:00
2013-04-19 09:32:49 -04:00
2010-09-20 22:08:53 +02:00
2013-09-29 22:46:30 -04:00