postgresql/contrib/ltree
Noah Misch 98be8a6eaa 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:39 -05:00
..
data Add ltree data type to contrib, from Teodor Sigaev and Oleg Bartunov. 2002-07-30 16:40:34 +00:00
expected Fix a few contrib regression test scripts that hadn't gotten the word 2007-11-13 06:29:04 +00:00
sql Fix a few contrib regression test scripts that hadn't gotten the word 2007-11-13 06:29:04 +00:00
.gitignore Some more gitignore cleanups: cover contrib and PL regression test outputs. 2010-09-22 17:23:00 -04:00
_ltree_gist.c Allow zero-dimensional (ie, empty) arrays in contrib/ltree operations. 2010-02-24 18:02:30 +00:00
_ltree_op.c Allow zero-dimensional (ie, empty) arrays in contrib/ltree operations. 2010-02-24 18:02:30 +00:00
crc32.c Fix compile warning on Solaris, per buildfarm. (Why have we got 2007-07-15 22:40:28 +00:00
crc32.h Add CVS tag lines to files that were lacking them. 2006-03-11 04:38:42 +00:00
lquery_op.c Allow zero-dimensional (ie, empty) arrays in contrib/ltree operations. 2010-02-24 18:02:30 +00:00
ltree.h Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:39 -05:00
ltree.sql.in Mark contrib's GiST and GIN opclass support functions as STRICT, for safety. 2009-06-11 18:30:03 +00:00
ltree_gist.c Allow zero-dimensional (ie, empty) arrays in contrib/ltree operations. 2010-02-24 18:02:30 +00:00
ltree_io.c Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:39 -05:00
ltree_op.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
ltreetest.sql Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00
ltxtquery_io.c Predict integer overflow to avoid buffer overruns. 2014-02-17 09:33:39 -05:00
ltxtquery_op.c 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
Makefile Remove references to READMEs from /contrib Makefiles. 2007-11-10 23:59:52 +00:00
uninstall_ltree.sql Push index operator lossiness determination down to GIST/GIN opclass 2008-04-14 17:05:34 +00:00