summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2003-01-13 20:12:16 +0000
committermiod <miod@openbsd.org>2003-01-13 20:12:16 +0000
commit28df6bc0bc4f29d244c485b9f6274abe081da9f0 (patch)
treee8e5e7d8e15c6bfce0d9c0601a981268b7321142 /lib/libc/stdlib/malloc.c
parentMissing splx() (diff)
downloadwireguard-openbsd-28df6bc0bc4f29d244c485b9f6274abe081da9f0.tar.xz
wireguard-openbsd-28df6bc0bc4f29d244c485b9f6274abe081da9f0.zip
Clean up ipl handling: be sure to always return valid levels in getipl(),
and check input level in setipl() if DIAGNOSTIC. Doing this pointed out an horrible bug where exception frames would refer to the saved ipl at the time the exception was processed, but would not save it before, and the joys of stack values would make it a correct value 90% of the time. Of course, bad things could happen when restoring the ``saved'' ipl...
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions