toazz - 2012-03-07

POSIX specification states that mprotect can have unspecified behavior if mprotect is not called with a mapping created by mmap. So, using mprotect to change access to malloc'ed memory (as in "dynamic core" code) may not be a good idea.