[delphizip] Re: bugreport

  • From: RPeters <rpeters@xxxxxxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Sun, 26 Apr 2009 08:07:02 +1000

Михаил Денисенко wrote:
> 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.
>   
Roger normally handles ZipBuilder but he is not available at the moment.
I will take note of this and update my copy for he is available.
Russell Peters
-----------
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: