(perl # 132147) improve robustness against corrupt SDBM databases
authorTony Cook <tony@develop-help.com>
Mon, 19 Nov 2018 03:04:20 +0000 (14:04 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 19 Nov 2018 03:04:20 +0000 (14:04 +1100)
commit7d5be4b67af37e3a46105aeafc0c7871322bdc7d
treecab5a25e021167f6b1dd30caa3f1671da9e50848
parent3db0bcccf4d9617c94822609f33314fe0df2df3b
parentea9daa76273fee4292f7efde2d112676dbd91e3b
(perl # 132147) improve robustness against corrupt SDBM databases

This merge makes a few changes to the SDBM database handling:

- in a few places, a corrupt page could be loaded, but despite
  failing validation, it would still be cached, so a second call
  would try to use the corrupt page, causing buffer overflows

- some code didn't validate on page load at all.

- adds three extra checks to the page validator