문제

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);

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top