Top "Heap-corruption" questions

A type of memory corruption that occurs in a computer program when the contents of a memory location are unintentionally modified due to programming errors

Is there a way to mark a chunk of allocated memory readonly?

if I allocate some memory using malloc() is there a way to mark it readonly. So memcpy() fails if someone …

c++ c memory-management malloc heap-corruption
Heap corruption when returning from function inside a dll

I have a function with a prototype like the following: void function(std::string str); This function is called in …

c++ dll exception-handling heap-corruption
Immediate detection of heap corruption errors on Windows. How?

I can't sleep! :) I have a reasonably large project on Windows and encountered some heap corruption issues. I have read …

c++ c heap-memory heap-corruption virtualalloc
Heap corruption in C

int main () { int * b; b = (int*) malloc (1); *b=110000; free (b); return 0; } Why does heap corruption happen at free (b);? IMO, …

c heap-corruption