pgsql: Add sentinel_ok() check to BumpCheck().
pgsql: Add sentinel_ok() check to BumpCheck().
От:
David Rowley <drowley@postgresql.org>
Дата:
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 Author: David Rowley Discussion: https://postgr.es/m/CAGRkXqQxTCthDEnw_10OEGLVNMUeyE4So-K29jmn9nAkxtr1ow@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(+)