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 <[email protected]>
Author: David Rowley <[email protected]>
Discussion: 
https://postgr.es/m/cagrkxqqxtcthdenw_10oeglvnmueye4so-k29jmn9nakxtr...@mail.gmail.com
Backpatch-through: 17

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/773164824353fbb023cec7f3deb11d6b5c6c06b8

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

Reply via email to