postgres/src
Heikki Linnakangas 17901b0137 Fix race condition in pg_ctl reading postmaster.pid.
If postmaster changed postmaster.pid while pg_ctl was reading it, pg_ctl
could overrun the buffer it allocated for the file. Fix by reading the
whole file to memory with one read() call.

initdb contains an identical copy of the readfile() function, but the files
that initdb reads are static, not modified concurrently. Nevertheless, add
a simple bounds-check there, if only to silence static analysis tools.

Per report from Dave Vitek. Backpatch to all supported branches.
2012-10-15 10:51:50 +03:00
..
backend Fix cross-type case in partial row matching for hashed subplans. 2012-10-11 12:21:29 -04:00
bin Fix race condition in pg_ctl reading postmaster.pid. 2012-10-15 10:51:50 +03:00
include Stamp 8.3.21. 2012-09-19 17:58:37 -04:00
interfaces Fix lo_import and lo_export to return useful error messages more often. 2012-10-08 21:53:04 -04:00
makefiles Fix PGXS support for building loadable modules on AIX. 2012-10-09 21:04:30 -04:00
pl Back-patch fix and test case for bug #7516. 2012-09-14 11:50:19 -04:00
port Stamp 8.3.21. 2012-09-19 17:58:37 -04:00
template Use SYSV semaphores rather than POSIX on Darwin >= 6.0 (i.e., OS X 10.2 2007-09-26 00:32:46 +00:00
test Fix cross-type case in partial row matching for hashed subplans. 2012-10-11 12:21:29 -04:00
timezone Update time zone data files to tzdata release 2012f. 2012-09-19 10:46:10 -04:00
tools Backpatch "Use the preferred version of xsubpp." 2011-11-28 07:46:15 -05:00
tutorial Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:12 +02:00
DEVELOPERS
Makefile Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
Makefile.global.in Back-patch creation of tar.bz2 tarball during "make dist". 2011-07-03 16:40:34 -04:00
Makefile.shlib Fix assorted issues with build and install paths containing spaces. 2011-06-14 16:24:45 -04:00
bcc32.mak
nls-global.mk
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00