C++ error: heap corruption detected:after normal block(#xxx) at 0x xxxxxxxx
Thiserrorcanoccurwhendeletingorfreeingamemoryblockwhosecontentislongerthanitssize,thatismemoryoverflow.example1: char*test=(char*)malloc(5); strcpy(test,"hello"); free(test);example2: char*tes