postgres/src
Peter Eisentraut d27c18d26f Avoid invalid alloc size error in shm_mq
In shm_mq_receive(), a huge payload could trigger an unjustified
"invalid memory alloc request size" error due to the way the buffer
size is increased.

Add error checks (documenting the upper limit) and avoid the error by
limiting the allocation size to MaxAllocSize.

Author: Markus Wanner <markus.wanner@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/3bb363e7-ac04-0ac4-9fe8-db1148755bfa%402ndquadrant.com
2020-10-20 17:22:41 +02:00
..
backend Avoid invalid alloc size error in shm_mq 2020-10-20 17:22:41 +02:00
bin Fix connection string handling in src/bin/scripts/ programs. 2020-10-19 19:03:47 -04:00
common Replace use of sys_siglist[] with strsignal(). 2020-07-15 22:05:13 -04:00
include C comment: correct use of 64-"byte" cache line size 2020-09-04 13:27:52 -04:00
interfaces In libpq for Windows, call WSAStartup once and WSACleanup not at all. 2020-10-19 11:23:52 -04:00
makefiles Select CFLAGS_SL at configure time, not in platform-specific Makefiles. 2019-10-21 12:32:36 -04:00
pl Translation updates 2020-08-10 15:36:46 +02:00
port Stamp 9.5.23. 2020-08-10 17:23:10 -04:00
template Select CFLAGS_SL at configure time, not in platform-specific Makefiles. 2019-10-21 12:32:36 -04:00
test Fix handling of BC years in to_date/to_timestamp. 2020-09-30 15:40:23 -04:00
timezone Update time zone data files to tzdata release 2020c. 2020-10-16 21:54:14 -04:00
tools Sync our copy of the timezone library with IANA release tzcode2020c. 2020-10-16 21:40:16 -04:00
tutorial Remove no-longer-required function declarations. 2015-05-24 12:20:23 -04:00
.gitignore
bcc32.mak
DEVELOPERS
Makefile Install TAP test infrastructure so it's available for extension testing. 2016-09-23 15:50:00 -04:00
Makefile.global.in Back-patch src/test/recovery and PostgresNode from 9.6 to 9.5. 2020-03-19 09:39:26 -07:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00
win32.mak