pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Avoid invalid alloc size error in shm_mq
7+ messages / 1 participants
[nested] [flat]

* pgsql: Avoid invalid alloc size error in shm_mq
@ 2020-10-19 07:01 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2020-10-19 07:01 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/26ec6b5948a73d0e07ed9435ee4554594acdf34f

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid invalid alloc size error in shm_mq
@ 2020-10-20 16:17 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2020-10-20 16:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1f53d0b9f45521a85e85b6dcab7c15a7d8b4b973

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid invalid alloc size error in shm_mq
@ 2020-10-20 16:17 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2020-10-20 16:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bd0677bb8a54683b05b75fc242bd5c757ce5edd8

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid invalid alloc size error in shm_mq
@ 2020-10-20 16:17 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2020-10-20 16:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6e03a8a304a2f31ffafb5f229794747c01af6936

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid invalid alloc size error in shm_mq
@ 2020-10-20 16:17 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2020-10-20 16:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f78ebbe68f48b7bb4fe8e23b5a30c32dfc452331

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid invalid alloc size error in shm_mq
@ 2020-10-20 16:17 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2020-10-20 16:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d4e654d15467d68c85e05eaaa49291de9f81b3ed

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid invalid alloc size error in shm_mq
@ 2020-10-20 16:17 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2020-10-20 16:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d27c18d26f00fc13401931fe9deb5012610faf89

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2020-10-20 16:17 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-10-19 07:01 pgsql: Avoid invalid alloc size error in shm_mq Peter Eisentraut <peter@eisentraut.org>
2020-10-20 16:17 pgsql: Avoid invalid alloc size error in shm_mq Peter Eisentraut <peter@eisentraut.org>
2020-10-20 16:17 pgsql: Avoid invalid alloc size error in shm_mq Peter Eisentraut <peter@eisentraut.org>
2020-10-20 16:17 pgsql: Avoid invalid alloc size error in shm_mq Peter Eisentraut <peter@eisentraut.org>
2020-10-20 16:17 pgsql: Avoid invalid alloc size error in shm_mq Peter Eisentraut <peter@eisentraut.org>
2020-10-20 16:17 pgsql: Avoid invalid alloc size error in shm_mq Peter Eisentraut <peter@eisentraut.org>
2020-10-20 16:17 pgsql: Avoid invalid alloc size error in shm_mq Peter Eisentraut <peter@eisentraut.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox