I expected that Pageheap will force my application to crash while executing the 2nd and 3rd statements in the below code piece. But this is not happening. I enabled full page heap for the application.
What extra things should I do to make pageheap to break my application at second and third statements?
char *test =new char[12];
memset(test,'c',15);
test[13] = 'c';
But If I use, the following statement pagebreak will break my application
memset(test,'c',50);