SourceForge has been redesigned. Learn more.
Close

#3 htpeimp.cc: dllname==NULL

open
nobody
None
5
2005-08-16
2005-08-16
Anonymous
No

hmm, actually it is not really a bug, but sometimes files have deliberately faulty headers. And so the line

char *dllname = fgetstrz(file);

in htpeimp.cc
happens to produce a NULL pointer, leading to a hang in

file->read(&thunk, sizeof thunk);

and the following frames.

So I had to insert the following after that dllname line:

if (!dllname){
goto pe_read_error; }

Well, not a big deal -
but helpful for me.

Juergen Leising

Discussion


Log in to post a comment.