postgresql/contrib/hstore
Noah Misch 31400a6733 Predict integer overflow to avoid buffer overruns.
Several functions, mostly type input functions, calculated an allocation
size such that the calculation wrapped to a small positive value when
arguments implied a sufficiently-large requirement.  Writes past the end
of the inadvertent small allocation followed shortly thereafter.
Coverity identified the path_in() vulnerability; code inspection led to
the rest.  In passing, add check_stack_depth() to prevent stack overflow
in related functions.

Back-patch to 8.4 (all supported versions).  The non-comment hstore
changes touch code that did not exist in 8.4, so that part stops at 9.0.

Noah Misch and Heikki Linnakangas, reviewed by Tom Lane.

Security: CVE-2014-0064
2014-02-17 09:33:31 -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 Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Fix makefile broken by hstore fix. 2013-09-29 22:46:55 -04: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--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
hstore_compat.c Provide some static-assertion functionality on all compilers. 2012-09-30 22:46:29 -04:00
hstore_gin.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -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 Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:31 -05:00
hstore_op.c Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:31 -05:00