Re: Validating a Function Address



Karl E. Peterson <karl@xxxxxxxx> schrieb im Beitrag
<OWdwxxXHHHA.5000@xxxxxxxxxxxxxxxxxxxx>...
What on Earth are you doubting these values for? You're not calculating
them, or something, are you?

What, if the function to call resides in a DLL, and this DLL in the
meantime has been unloaded willingly or due to a crash? With every code
pointer one should at least check with IsBadCodePtr() if the memory at the
given address is executable. Of course, there are lots of other
possibilities for a GPF, but if we can exclude one, why not do it?

--
----------------------------------------------------------------------
THORSTEN ALBERS Universität Freiburg
albers@
uni-freiburg.de
----------------------------------------------------------------------

.



Relevant Pages

  • Re: Dll with VB.Net
    ... "Nick" schrieb: ... >I am stuck with a very basic issue. ... > I try to create a dll with VB.NET. ... I find in the documentation that ...
    (microsoft.public.dotnet.languages.vb)
  • Re: how to get the path of an installed DLL of VS .NET Add-in
    ... "Tee" schrieb ... > But while waiting you or someone else to reply, ... Assembly.GetExecutingAssembly.Location in your DLL will contain the path ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: how to get the path of an installed DLL of VS .NET Add-in
    ... "Tee" schrieb ... > But while waiting you or someone else to reply, ... Assembly.GetExecutingAssembly.Location in your DLL will contain the path ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Windows Update on April 3, 2007
    ... "Conspiracy Penguin" schrieb: ... appeared saying something about a .dll either missing or being corrupt ...
    (microsoft.public.windowsupdate)
  • Re: Overwrite file in use
    ... "Gene Vangampelaere" ... > I need to write a function that can replace some (.dll) files. ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)

Loading