postgresql/contrib/hstore
Tom Lane f44290b7b3 Avoid integer overflow and buffer overrun in hstore_to_json().
This back-patches commit 0c5783ff30 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
..
data Add GIN support for pg_trgm. From Guillaume Smet <guillaume.smet@gmail.com> 2007-03-14 14:21:53 +00:00
expected JSON generation improvements. 2013-03-10 17:35:36 -04:00
sql JSON generation improvements. 2013-03-10 17:35:36 -04:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
crc32.c Fix typo in comment. 2013-04-19 09:32:49 -04:00
crc32.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
hstore_compat.c Provide some static-assertion functionality on all compilers. 2012-09-30 22:46:29 -04:00
hstore_gin.c Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
hstore_gist.c Replace int2/int4 in C code with int16/int32 2012-06-25 01:51:46 +03:00
hstore_io.c Avoid integer overflow and buffer overrun in hstore_to_json(). 2014-11-04 16:54:59 -05:00
hstore_op.c Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:32 -05:00
hstore--1.0--1.1.sql Backpatch: Fix typo in update scripts for some contrib modules. 2014-08-25 18:30:46 +02:00
hstore--1.1--1.2.sql Add missing condition for pg_depend in hstore migration script. 2013-09-30 11:38:31 -04:00
hstore--1.2.sql Use a new hstore extension version for added json functions. 2013-09-29 17:51:11 -04:00
hstore--unpackaged--1.0.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:46 +02:00
hstore.control Use a new hstore extension version for added json functions. 2013-09-29 17:51:11 -04:00
hstore.h Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
Makefile Fix makefile broken by hstore fix. 2013-09-29 22:46:30 -04:00