1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 06:38:11 +00:00

No need for this (object) reference in -m 23800

This commit is contained in:
philsmd 2020-09-11 10:12:02 +02:00
parent 90fb4aadae
commit 0809d326f6
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

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;
}