LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to create overflow-proof data segment? (https://www.linuxquestions.org/questions/linux-software-2/how-to-create-overflow-proof-data-segment-747438/)

alek314 08-13-2009 11:06 PM

how to create overflow-proof data segment?
 
hi :)
Is it possible to create a segment of memory(in c++), such that any attempt to overflow the data would trigger a SIGSEGV?

000000ddddddddd0000

e.g: the critical data lies in "ddddd", any attemp to write "000" would trigger SIGSEGV or crash the progam.

thanks!

chrism01 08-14-2009 01:22 AM

I'd ask the Mods to move this to programming for better responses. Use the Report button on your post.


All times are GMT -5. The time now is 08:14 AM.