LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-13-2009, 10:06 PM   #1
alek314
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Question 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!
 
Old 08-14-2009, 12:22 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

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


Reply

Tags
memory management



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is LKM's text and data segment once it is loaded into kernel? tommy24 Linux - Kernel 4 07-25-2008 09:13 PM
getting the virtual address of the .data segment ravi Linux - Newbie 0 01-31-2006 01:35 AM
How To Create RAID with exsisting data... hostile1 Linux - Hardware 2 12-16-2005 01:16 AM
Creating Ora10g database on FC2 gives unable to create shared memory segment.... deanbrown3d Linux - Software 1 10-23-2004 11:40 AM
Create a hash with any data Nerox Programming 3 07-31-2004 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration