c++ - Is it possible to force an access violation when a specific address is accessed? -


We have an array that has grown for alignment purposes, such as not being caught by the common mechanism by the same errors .

Is it possible to preserve a small, arbitrary region (16 bytes of start and end of array) in Windows, as it causes an access violation? The language is C ++.

I believe the best granularity in the x86 architecture can be found in marking memory Protected one page (4K I think) is for You can set the array that the beginning or end falls into the page range (and that page is safe). But in such borders, for both ends to fall, definitely a very specific array length will be required.

How to set up a Patron page


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -