postgresql/src
Andrew Dunstan 2271d002d5 Fix "path" infrastructure bug affecting jsonb_set()
jsonb_set() and other clients of the setPathArray() utility function
could get spurious results when an array integer subscript is provided
that is not within the range of int.

To fix, ensure that the value returned by strtol() within setPathArray()
is within the range of int;  when it isn't, assume an invalid input in
line with existing, similar cases.  The path-orientated operators that
appeared in PostgreSQL 9.3 and 9.4 do not call setPathArray(), and
already independently take this precaution, so no change there.

Peter Geoghegan
2015-06-12 19:26:03 -04:00
..
backend Fix "path" infrastructure bug affecting jsonb_set() 2015-06-12 19:26:03 -04:00
bin Clean up useless mention of RMGRDESCSOURCES in pg_rewind Makefile. 2015-06-12 12:32:48 +09:00
common pgindent run for 9.5 2015-05-23 21:35:49 -04:00
include Make postmaster restart archiver soon after it dies, even during recovery. 2015-06-12 23:11:51 +09:00
interfaces Fixed some memory leaks in ECPG. 2015-06-12 14:52:55 +02:00
makefiles Fix parallel make risk with new check temp-install setup 2015-04-29 20:34:22 -04:00
pl Fix failure to cover scalar-vs-rowtype cases in exec_stmt_return(). 2015-06-12 13:44:06 -04:00
port pgindent run for 9.5 2015-05-23 21:35:49 -04:00
template Remove duplicate specification of -Ae for HP-UX C compiler. 2015-01-13 22:52:11 -05:00
test Fix failure to cover scalar-vs-rowtype cases in exec_stmt_return(). 2015-06-12 13:44:06 -04:00
timezone Update time zone data files to tzdata release 2015d. 2015-05-15 19:35:29 -04:00
tools pgindent: add typedef blog URL 2015-06-01 11:27:30 -04:00
tutorial Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in doc build: use unique Makefile variable to control temp install 2015-05-12 12:30:50 -04:00
Makefile.shlib Add transforms feature 2015-04-26 10:33:14 -04:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00