mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Merge pull request #2547 from philsmd/master
No need for this (object) reference in -m 23800
This commit is contained in:
commit
3dd89bc63c
16
deps/unrar/hc_decompress_rar.cpp
vendored
16
deps/unrar/hc_decompress_rar.cpp
vendored
@ -27,7 +27,7 @@ extern "C" unsigned int hc_decompress_rar (unsigned char *Win, unsigned char *In
|
|||||||
DataIO.SetUnpackFromMemory ((byte *) Input, PackSize);
|
DataIO.SetUnpackFromMemory ((byte *) Input, PackSize);
|
||||||
DataIO.SetUnpackToMemory ((byte *) NULL, UnpackSize);
|
DataIO.SetUnpackToMemory ((byte *) NULL, UnpackSize);
|
||||||
|
|
||||||
Unpack *Unp = new Unpack (&DataIO);
|
Unpack Unp = Unpack (&DataIO);
|
||||||
|
|
||||||
// not needed in our tests (no false positives):
|
// not needed in our tests (no false positives):
|
||||||
// memset (Win, 0, UnpackSize);
|
// 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
|
// #define PPMSIZE 216 * 1024 * 1024
|
||||||
// memset (PPM, 0, PPMSIZE);
|
// memset (PPM, 0, PPMSIZE);
|
||||||
|
|
||||||
Unp->SetWin (Win);
|
Unp.SetWin (Win);
|
||||||
Unp->SetPPM (PPM);
|
Unp.SetPPM (PPM);
|
||||||
|
|
||||||
Unp->Init (WINSIZE, SOLID);
|
Unp.Init (WINSIZE, SOLID);
|
||||||
Unp->SetDestSize (UnpackSize);
|
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 ();
|
unsigned int crc32 = (unsigned int) DataIO.UnpHash.GetCRC32 ();
|
||||||
|
|
||||||
delete Unp;
|
|
||||||
|
|
||||||
return crc32;
|
return crc32;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user