postgresql/src
Tom Lane 6412f3e2d0 Reject out-of-range numeric timezone specifications.
In commit 631dc390f4, we started to handle
simple numeric timezone offsets via the zic library instead of the old
CTimeZone/HasCTZSet kluge.  However, we overlooked the fact that the zic
code will reject UTC offsets exceeding a week (which seems a bit arbitrary,
but not because it's too tight ...).  This led to possibly setting
session_timezone to NULL, which results in crashes in most timezone-related
operations as of 9.4, and crashes in a small number of places even before
that.  So check for NULL return from pg_tzset_offset() and report an
appropriate error message.  Per bug #11014 from Duncan Gillis.

Back-patch to all supported branches, like the previous patch.
(Unfortunately, as of today that no longer includes 8.4.)
2014-07-21 22:41:20 -04:00
..
backend Reject out-of-range numeric timezone specifications. 2014-07-21 22:41:20 -04:00
bin Properly use DEFAULT_EVENT_SOURCE in pgevent.c 2014-07-21 12:24:00 +02:00
common pgindent run for 9.4 2014-05-06 12:12:18 -04:00
include Add option to pg_ctl to choose event source for logging 2014-07-17 12:42:08 +02:00
interfaces Translation updates 2014-07-21 01:08:04 -04:00
makefiles Add file version information to most installed Windows binaries. 2014-07-14 14:07:52 -04:00
pl Translation updates 2014-07-21 01:08:04 -04:00
port Add mkdtemp() to libpgport. 2014-06-14 09:41:13 -04:00
template Remove Alpha and Tru64 support. 2014-06-28 21:46:15 +02:00
test Partial fix for dropped columns in functions returning composite. 2014-07-19 14:28:52 -04:00
timezone Reject out-of-range numeric timezone specifications. 2014-07-21 22:41:20 -04:00
tools Remove dependency on wsock32.lib in favor of ws2_32 2014-07-15 14:18:39 +02:00
tutorial Adjust blank lines around PG_MODULE_MAGIC defines, for consistency 2014-07-10 14:02:08 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Support vpath builds in TAP tests 2014-07-02 21:47:07 -04:00
Makefile.shlib Remove Alpha and Tru64 support. 2014-06-28 21:46:15 +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
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