Re: Memory access of unmanaged DLL

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




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

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.



Relevant Pages

  • RE: Unmanaged Type Name and Strong Names
    ... I tried this and it worked, thanks to mattias! ... "Craig" wrote: ... >> fix this, since I cannot modify the type library itself. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Create native DLL in c++ and call it from c#
    ... Perhaps one of you would like to modify the example I posted to reflect ... The reason i posted this in the first place was to ... Mattias Sjögren wrote: ... Please reply only to the newsgroup. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Encrypt method
    ... but i can see the contents like always and modify ... Seaerch for "Encrypting File System" for more information. ... Mattias Sjögren mattias @ mvps.org ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Default property display in debug windows
    ... your options there are to override ToString or to modify the ... Mattias Sjögren [C# MVP] mattias @ mvps.org ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: turn off "Load(import) image dialog" in the registry
    ... Hi Mattias, ... >> Alex Dybenko (MVP) ... >>> Or is there any possibility to run a script or something after inalling ...
    (microsoft.public.access.devtoolkits)