postgresql/src
Heikki Linnakangas 1c95b5eea6 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:54:33 +03:00
..
backend Fix cross-type case in partial row matching for hashed subplans. 2012-10-11 12:21:18 -04:00
bin Fix race condition in pg_ctl reading postmaster.pid. 2012-10-15 10:54:33 +03:00
include Stamp 9.0.10. 2012-09-19 17:53:08 -04:00
interfaces Fix lo_import and lo_export to return useful error messages more often. 2012-10-08 21:52:53 -04:00
makefiles Fix PGXS support for building loadable modules on AIX. 2012-10-09 21:04:20 -04:00
pl Back-patch fix and test case for bug #7516. 2012-09-14 11:50:10 -04:00
port Stamp 9.0.10. 2012-09-19 17:53:08 -04:00
template Don't try to force use of -no-cpp-precomp on OS X. It's been five years 2010-08-02 04:51:25 +00:00
test Fix cross-type case in partial row matching for hashed subplans. 2012-10-11 12:21:18 -04:00
timezone Update time zone data files to tzdata release 2012f. 2012-09-19 10:45:34 -04:00
tools Backpatch "Use the preferred version of xsubpp." 2011-11-28 07:54:03 -05:00
tutorial Remove copyright mention of Andrew Yu, per author's permission. 2010-02-02 18:52:02 +00:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:06 +02:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00: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 Rethink the way walreceiver is linked into the backend. Instead than shoving 2010-01-20 09:16:24 +00:00
Makefile.global.in Accept slightly grotty coding in Makefile.global in order to keep the -L 2010-07-06 22:03:05 +00:00
Makefile.shlib Fix assorted issues with build and install paths containing spaces. 2011-06-14 16:41:23 -04:00
nls-global.mk Avoid error from mkdir if no languages are to be installed 2010-05-13 14:35:28 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00