postgresql/src/backend/utils
Heikki Linnakangas e71fe84708 Fix off-by-one in memory allocation for quote_literal_cstr().
The calculation didn't take into account the NULL terminator. That lead
to overwriting the palloc'd buffer by one byte, if the input consists
entirely of backslashes. For example "format('%L', E'\\')".

Fixes bug #14468. Backpatch to all supported versions.

Report: https://www.postgresql.org/message-id/20161216105001.13334.42819%40wrigleys.postgresql.org
2016-12-16 12:53:22 +02:00
..
adt Fix off-by-one in memory allocation for quote_literal_cstr(). 2016-12-16 12:53:22 +02:00
cache Fix subtransaction cleanup after an outer-subtransaction portal fails. 2015-09-04 13:36:50 -04:00
error Be more careful to not lose sync in the FE/BE protocol. 2015-02-02 17:09:40 +02:00
fmgr Properly install dynloader.h on MSVC builds 2016-01-19 23:30:28 -05:00
hash Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
init Perform an immediate shutdown if the postmaster.pid file is removed. 2015-10-06 17:15:27 -04:00
mb Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
misc Remove very-obsolete estimates of shmem usage from postgresql.conf.sample. 2016-07-19 18:41:30 -04:00
mmgr Fix subtransaction cleanup after an outer-subtransaction portal fails. 2015-09-04 13:36:50 -04:00
resowner Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
sort Fix bogus "out of memory" reports in tuplestore.c. 2015-08-04 18:18:46 -04:00
time Fix handling of multixacts predating pg_upgrade 2016-06-24 18:29:28 -04:00
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
errcodes.txt Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Gen_dummy_probes.pl Remove dependency on psed for MSVC builds. 2016-03-19 18:51:01 -04:00
Gen_dummy_probes.sed Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Gen_fmgrtab.pl Update copyrights for 2013 2013-01-01 17:15:01 -05:00
generate-errcodes.pl Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
probes.d Update copyrights for 2013 2013-01-01 17:15:01 -05:00