pgsql: Add assertion to check the special size is sane before dereferen - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Add assertion to check the special size is sane before dereferen
Date
Msg-id E1Z9t6L-0006tu-IF@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add assertion to check the special size is sane before dereferencing it.

This seems useful to catch errors of the sort I just fixed, where
PageGetSpecialPointer is called before initializing the page.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/302ac7f27197855afa8c89fae36c85c124ae156b

Modified Files
--------------
src/include/storage/bufpage.h |    2 ++
1 file changed, 2 insertions(+)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Don't call PageGetSpecialPointer() on page until it's been initi
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Don't call PageGetSpecialPointer() on page until it's been initi