vote up 0 vote down star

Is it possible for a program to access another program's memory directly and read from (or write to) it, or to "inherit" the old contents of memory reclaimed from another program? (ie if it doesn't zero out memory before using it and just reads from unitialized memory directly)

flag

2 Answers

vote up 1 vote down

Ever since Windows XP and on, all major operating systems have this type of memory protection. One program will not be able to write to another program's memory.

It might be possible that a program could "reclaim" memory that was de-allocated from another program but it will not have the information that was previously stored within it.

link|flag
Erm, such things predate Windows XP by quite some time. Every version of the Windows NT line has this. – Johannes Rössel Sep 25 at 19:47
Yeah you're right, I think this problem existed in Windows 9x, but was changed after. – Jordan L. Walbesser Sep 25 at 21:16
Windows 9x is dead, its last gasp being Windows ME. Since then, all versions of Windows have been developments of Windows NT. So, whether or not the problem was later fixed in the Windows 9x codebase, it's fixed now. – David Thornley Sep 25 at 21:50
vote up 0 vote down

I haven't written code for Vista nor Win7, but I can't imagine that their developer tool box doesn't include some type of shared memory mechanism.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.