[delphizip] bugreport

  • From: Михаил Денисенко <denisenkom@xxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Fri, 24 Apr 2009 16:04:04 +0400

Description:
memory allocated with MakeStrP, and released with incompatible 'operator
delete[]'.
Snippet:
ZBWrkr.cpp, function TZBWorker::ExtExtract
...
                if (!TmpBaseDir.IsEmpty())
                    UnzRecP->fExtractDir = MakeStrP(TmpBaseDir); //
allocation
                else
                    UnzRecP->fExtractDir = NULL;
...
BUG--->                    delete[] UnzRecP->fExtractDir;
FIX--->                      StrDispose(UnzRecP->fExtractDir);
...


On my box this bug corrupts heap and triggers AV.


-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: