>Can I access memory of the managed code from a loaded unmanaged DLL?
Yes
>The point is: Does a intruder, who injected code into the unmanged DLL
>via e.g. a buffer overflow, have the possibility to read and modify
>data in the managed memory?
Absolutely.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Ben Voigt - 24 Nov 2006 16:34 GMT
>>Can I access memory of the managed code from a loaded unmanaged DLL?
>
> Yes
This capability is essentially useless for any program that has to work
reliably, because the GC will move stuff around in the managed heap.
>>The point is: Does a intruder, who injected code into the unmanged DLL
>>via e.g. a buffer overflow, have the possibility to read and modify
>>data in the managed memory?
>
> Absolutely.
But an information leak is a problem even if it isn't reliable.
> Mattias