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
sql Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
.gitignore
crc32.c
crc32.h
hstore_compat.c
hstore_gin.c
hstore_gist.c
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
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