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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -