Will Redox-OS have a hardened malloc?
Created by: redox-questions
OpenBSD has an "S" option for malloc (mitigation):
ln -fs S /etc/malloc.conf
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/malloc.c https://man.openbsd.org/malloc.conf
S - Enable all options suitable for security auditing.
C - “Canaries”. Add canaries at the end of allocations in order to detect heap overflows. The canary's content is checked when free(3) is called. If it has been corrupted, the process is aborted.
G - “Guard”. Enable guard pages. Each page size or larger allocation is followed by a guard page that will cause a segmentation fault upon any access.
J - “More junking”. Increase the junk level by one if it is smaller than 2.
Will Redox OS use them by default & mandatory?
Thanks.