summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/ssl_lib.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-01-22 05:09:41 +0000
committerdlg <dlg@openbsd.org>2015-01-22 05:09:41 +0000
commit2113b108eea9c6669adf2829f9ea4a893eef5957 (patch)
treecf115d62cb197a53daa1c834b63ef16a31875f15 /lib/libssl/src/ssl/ssl_lib.c
parentAssume that the size of a pointer will not change at runtime. (diff)
downloadwireguard-openbsd-2113b108eea9c6669adf2829f9ea4a893eef5957.tar.xz
wireguard-openbsd-2113b108eea9c6669adf2829f9ea4a893eef5957.zip
pool_chk_page iterates over a pages free item lists and checks that
the items address is within the page. it does that by masking the item address with the page mask and comparing that to the page address. however, if we're using large pages with external page headers, we dont request that the large page be aligned to its size. eg, on an arch with 4k pages, an 8k large page could be aligned to 4k, so masking bits to get the page address wont work. these incorrect checks were distracting while i was debugging large pages on landisk. this changes it to do range checks to see if the item is within the page. it also checks if the item is on the page before checking if its magic values or poison is right. ok miod@
Diffstat (limited to 'lib/libssl/src/ssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions