postgresql/src/backend/utils
Peter Eisentraut 240766a6ec Avoid potential buffer overflow crash
A pointer to a C string was treated as a pointer to a "name" datum and
passed to SPI_execute_plan().  This pointer would then end up being
passed through datumCopy(), which would try to copy the entire 64 bytes
of name data, thus running past the end of the C string.  Fix by
converting the string to a proper name structure.

Found by LLVM AddressSanitizer.
2013-11-23 07:31:53 -05:00
..
adt Avoid potential buffer overflow crash 2013-11-23 07:31:53 -05:00
cache Fix longstanding race condition in plancache.c. 2013-04-20 16:59:41 -04:00
error Be more robust when strerror() doesn't give a useful result. 2013-11-07 16:33:39 -05:00
fmgr Ignore SECURITY DEFINER and SET attributes for a PL's call handler. 2012-05-30 23:28:21 -04:00
hash Add defenses against integer overflow in dynahash numbuckets calculations. 2012-12-11 22:09:34 -05:00
init Arrange to fsync the contents of lockfiles (both postmaster.pid and the 2010-08-16 17:33:01 +00:00
mb Back-patch addition of pg_wchar-to-multibyte conversion functionality. 2012-07-10 16:52:51 -04:00
misc Limit values of archive_timeout, post_auth_delay, auth_delay.milliseconds. 2012-11-18 17:15:27 -05:00
mmgr Oops, in the previous fix to prevent a cursor that's being used in a FOR 2010-07-13 09:02:40 +00:00
resowner Fix bug in temporary file management with subtransactions. A cursor opened 2009-12-03 11:03:35 +00:00
sort Ensure 64bit arithmetic when calculating tapeSpace 2013-07-14 16:44:49 -04:00
time Fix old visibility bug in HeapTupleSatisfiesDirty 2013-08-02 17:07:32 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:08 +02:00
Gen_dummy_probes.sed Update copyright for 2009. 2009-01-01 17:24:05 +00:00
Gen_fmgrtab.pl Update copyright for 2009. 2009-01-01 17:24:05 +00:00
Gen_fmgrtab.sh Update copyright for 2009. 2009-01-01 17:24:05 +00:00
Makefile Add a few more DTrace probes to the backend. 2008-08-01 13:16:09 +00:00
probes.d Revert DTrace patch from Robert Lor 2009-04-02 20:59:10 +00:00