pgsql: Harden some allocations against integer wraparound

Поиск
Список
Период
Сортировка
Искать

pgsql: Harden some allocations against integer wraparound

От:
Noah Misch <noah@leadboat.com>
Дата:
Harden some allocations against integer wraparound

This isn't closing any specific security bug, but attacks are perhaps
conceivable due to various forms of type confusion or data corruption.
Tighten that up a bit.  More is undoubtely possible.

Author: Álvaro Herrera 
Security: CVE-2026-120139
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a17bc8b3cac07360fd2331fa3a907394617caa68
Author: Álvaro Herrera 

Modified Files
--------------
src/backend/access/common/detoast.c           |  9 +++++++
src/backend/access/common/toast_compression.c | 37 ++++++++++++++++++++++++---
src/backend/utils/adt/array_userfuncs.c       |  6 +++++
src/include/access/tableam.h                  |  6 +++++
src/include/varatt.h                          |  5 ++--
5 files changed, 57 insertions(+), 6 deletions(-)

FAQ