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_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/86848d19bdbbf0daac6ca1b92a8885179cae8db5 Modified Files -------------- src/backend/utils/mmgr/bump.c | 4 ++++ 1 file changed, 4 insertions(+)
