| Function call from httrack\src\htsback.c @ 2724 was as follwing: It is passing
null pointer to fspc. ;-) Got it.
fspc(NULL,cache->log,"warning"); fprintf(cache->log,"Incorrect length
("LLintP"!="LLintP" expected) for
%s%s"LF,(LLint)back[i].r.size,(LLint)back[i].r.totalsize,back[i].url_adr,back[i].url_fil);
So modified code as follows as seems to be working fine. ;-))
Hope that there are NO more mines of this kind.
Need to run this regorously and check this out.
HTS_INLINE int fspc(httrackp *opt,FILE* fp,const char* type) {
////////////////////////////////////
// code added by Rajesh to solve crash dump
// check for null pointer
// ## Start
/////////////////////////
//fspc_strc* strc = &opt->state.fspc;
fspc_strc* strc;
if (opt == NULL)
{
return 0;
}
strc = &opt->state.fspc; | |