pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add sentinel_ok() check to BumpCheck().
Date: Fri, 16 Oct 2026 04:59:58 +0000
Message-ID: <E1xHa2w-00000001pBa-2Ks2@gemulon.postgresql.org> (raw)

Add sentinel_ok() check to BumpCheck().

Effectively an oversight in 29f6a959cf.  The code went to the trouble of
doing set_sentinel() but no code ever checked it was still set during
BumpCheck().  Since bump context types are used in a handful of places,
it very much makes sense to backpatch this to where bump.c was added so we
can more easily discover any memory stomping bugs.

Reported-by: shihao zhong <zhong950419@gmail.com>
Author: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/CAGRkXqQxTCthDEnw_10OEGLVNMUeyE4So-K29jmn9nAkxtr1ow@mail.gmail.com
Backpatch-through: 17

Branch
------
REL_19_STABLE

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

Modified Files
--------------
src/backend/utils/mmgr/bump.c | 4 ++++
1 file changed, 4 insertions(+)



view thread (4+ messages)  latest in thread

Message-ID: <E1xHa2w-00000001pBa-2Ks2@gemulon.postgresql.org>
Permalink:  ../E1xHa2w-00000001pBa-2Ks2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xHa2w-00000001pBa-2Ks2@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: drowley@postgresql.org
  Subject: Re: pgsql: Add sentinel_ok() check to BumpCheck().
  In-Reply-To: <E1xHa2w-00000001pBa-2Ks2@gemulon.postgresql.org>
  References: <E1xHa2w-00000001pBa-2Ks2@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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