1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-21 23:58:07 +00:00

Merge pull request #2547 from philsmd/master

No need for this (object) reference in -m 23800
This commit is contained in:
Jens Steube 2020-09-22 10:43:56 +02:00 committed by GitHub
commit 3dd89bc63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ extern "C" unsigned int hc_decompress_rar (unsigned char *Win, unsigned char *In
DataIO.SetUnpackFromMemory ((byte *) Input, PackSize);
DataIO.SetUnpackToMemory ((byte *) NULL, UnpackSize);
Unpack *Unp = new Unpack (&DataIO);
Unpack Unp = Unpack (&DataIO);
// not needed in our tests (no false positives):
// memset (Win, 0, UnpackSize);
@ -37,19 +37,17 @@ extern "C" unsigned int hc_decompress_rar (unsigned char *Win, unsigned char *In
// #define PPMSIZE 216 * 1024 * 1024
// memset (PPM, 0, PPMSIZE);
Unp->SetWin (Win);
Unp->SetPPM (PPM);
Unp.SetWin (Win);
Unp.SetPPM (PPM);
Unp->Init (WINSIZE, SOLID);
Unp->SetDestSize (UnpackSize);
Unp.Init (WINSIZE, SOLID);
Unp.SetDestSize (UnpackSize);
Unp->SetExternalBuffer (Inp, VM);
Unp.SetExternalBuffer (Inp, VM);
Unp->DoUnpack (METHOD, SOLID); // sets output
Unp.DoUnpack (METHOD, SOLID); // sets output
unsigned int crc32 = (unsigned int) DataIO.UnpHash.GetCRC32 ();
delete Unp;
return crc32;
}