summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
authorotto <>2017-04-22 09:12:49 +0000
committerotto <>2017-04-22 09:12:49 +0000
commitc55942aa2765a47b52e4dc8d26949e26d41a99bb (patch)
tree9a21060563d63e7d6a5ea6292606aec1214fa90c /src/lib/libc/stdlib/malloc.3
parent35361b16246c3e7aa5300e4fde4d34e0711a05db (diff)
downloadopenbsd-c55942aa2765a47b52e4dc8d26949e26d41a99bb.tar.gz
openbsd-c55942aa2765a47b52e4dc8d26949e26d41a99bb.tar.bz2
openbsd-c55942aa2765a47b52e4dc8d26949e26d41a99bb.zip
For small allocations (chunk) freezero only validates the given
size if canaries are enabled. In that case we have the exact requested size of the allocation. But we can at least check the given size against the chunk size if C is not enabled. Plus add some braces so my brain doesn't have to scan for dangling else problems when I see this code.
Diffstat (limited to 'src/lib/libc/stdlib/malloc.3')
0 files changed, 0 insertions, 0 deletions