I've used malloc countless times, but as far as I know, reading and writing to memory that isn't expressly yours (which is in fact done by the malloc function) causes a segfault. If I wanted to make my own dynamic allocation functions my computer would probably just laugh at me and triple fault all the way to the moon and back. So why doesn't malloc generate segfaults? Does it have special permissions? If it doesn't, would it be possible to make my own malloc functions (which would be really cool)?