Safe allocations in C

When programming in C, heap management is critical. Most of today’s exploitation happens in that segment of memory ! Malloc The most common way to allocate memory is to use the malloc function from the Standard C library. The function is prototyped : It takes a number of bytes to allocate and then returns a pointer to a memory region …