Browse Source

After a long gestation period, here comes our custom version of malloc(3)

using mmap(2) instead of sbrk(2).
To make a long story short, using mmap(2) in malloc(3) allows us to draw
all the benefits from our mmap(2)'s randomization feature, closing the
effort we did for returning memory blocks from random addresses.
Tested for a long time by many, thanks to them.
Go for it ! deraadt@
OPENBSD_3_6
tdeval 20 years ago
parent
commit
f2430b4096
1 changed files with 475 additions and 181 deletions
  1. +475
    -181
      src/lib/libc/stdlib/malloc.c

+ 475
- 181
src/lib/libc/stdlib/malloc.c
File diff suppressed because it is too large
View File


Loading…
Cancel
Save