I'm talking about the memory flag behavior. I notice that there will be 12 bytes of memory flag ahead of the heap memory I new. After I deleted my heap memory, the flag changed. Like:
auto A = new A;
00 00 00 00 59 1f 12 04 7d bf 00 0c | the heap memory of A |
delete A;
00 00 00 00 59 1f 12 04 4e bf 00 0c | the heap memory of A |
also, some other parts of the memory also changed after delete. Here, I just want to figure out what will happen to the memory after new and delete operation. And how to decode the 12 bytes data ahead of the heap memory. BTW, I'm using VS2017 as my compiling tool.