This is the mail archive of the cygwin-talk mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The Big List of Dodgy Apps


On Tue, Mar 20, 2007 at 11:45:22AM -0700, Brian Dessent wrote:
>Dave Korn wrote:
>
>> > I would think it was possible to have cygcheck do something like
>> > sysinternals' process explorer does to get the DLL list, but to do it
>> > only on itself - essentially asking the question "to which DLLs am I
>> > linked?"  The expected DLLs can be eliminated from all enquiries.  If
>> > the fingerprint of a known offender is detected, it can be reported as
>> > such.  Anything else can be reported as a "potential problem".
>> 
>>   This seems a reasonably good idea.  I was thinking at one point of adding it
>> to the cygwin crashdump routines invoked after fork() errors.
>
>It won't work to check "to which DLLs am I linked", at least not in the
>way of inspecting the PE headers of the file on disk.  The injecting is
>dynamic, through system hook functions, so you have to use the
>DebugHlp/ImageHlp libraries to inspect the process space, IIRC.

There is already some code in the Cygwin DLL which does this, or comes
close to doing this, in fact: hookapi.cc.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]