postgresql/contrib/hstore
Heikki Linnakangas 0c5783ff30 Avoid integer overflow in hstore_to_json().
The length of the output buffer was calculated based on the size of the
argument hstore. On a sizeof(int) == 4 platform and a huge argument, it
could overflow, causing a too small buffer to be allocated.

Refactor the function to use a StringInfo instead of pre-allocating the
buffer. Makes it shorter and more readable, too.
2014-02-21 15:47:22 +02:00
..
data
expected JSON generation improvements. 2013-03-10 17:35:36 -04:00
sql Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
.gitignore
crc32.c Fix typo in comment. 2013-04-19 09:32:49 -04:00
crc32.h
hstore_compat.c Provide some static-assertion functionality on all compilers. 2012-09-30 22:46:29 -04:00
hstore_gin.c
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 in hstore_to_json(). 2014-02-21 15:47:22 +02:00
hstore_op.c Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:31 -05:00
hstore--1.0--1.1.sql Fix typo in update scripts for some contrib modules. 2013-07-19 04:13:01 +09:00
hstore--1.1--1.2.sql Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
hstore--1.2.sql Use a new hstore extension version for added json functions. 2013-09-29 17:41:56 -04:00
hstore--unpackaged--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04:00
hstore.control Use a new hstore extension version for added json functions. 2013-09-29 17:41:56 -04:00
hstore.h Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:31 -05:00
Makefile Fix makefile broken by hstore fix. 2013-09-29 22:46:55 -04:00