]> granicus.if.org Git - postgresql/commit
Add assertion to check the special size is sane before dereferencing it.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 30 Jun 2015 10:44:04 +0000 (13:44 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 30 Jun 2015 10:44:04 +0000 (13:44 +0300)
commit302ac7f27197855afa8c89fae36c85c124ae156b
treec92ac6a9decee614a2dc58bd2a1bd4721f35f35b
parentfdf28853ae6a397497b79fea69f89f4f7b9aa991
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.
src/include/storage/bufpage.h