c - How to prevent Buffer overflow with segmentation or paging? -
how make use of segmentation , paging prevent buffer overflow? 1 guess might - because segmentation gives portion of memory each process , if process tried access address outside segment segfault occur. please tell me if correct or not. thank you!
segmentation / paging not prevent code attempting access memory outside of boundaries. definition of buffer overflow, , no sort of memory protections attempt broken code attempting things not allowed do.
what segmentation or paging can do, prevent code successfully accessing memory doesn't own. option operating system has kill process hardware has detected attempting "bad".
Comments
Post a Comment