CVSROOT: /cvs Module name: src Changes by: o...@cvs.openbsd.org 2017/04/22 03:12:49
Modified files: lib/libc/stdlib: malloc.c Log message: 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.