1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

fixed static limit for uncompress output to length defined

This commit is contained in:
Sein Coray 2019-03-21 21:37:24 +01:00
parent 2da33ab0ba
commit c768073f60
No known key found for this signature in database
GPG Key ID: 44C4180EA69758EC
6 changed files with 12 additions and 12 deletions

View File

@ -664,7 +664,7 @@ __kernel void m17200_sxx (KERN_ATTR_RULES_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hash.data_length - 12; // size of input
infstream.next_in = (Bytef *) compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *) inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default
@ -936,7 +936,7 @@ __kernel void m17200_mxx (KERN_ATTR_RULES_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hash.data_length - 12; // size of input
infstream.next_in = (Bytef *) compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *) inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default

View File

@ -664,7 +664,7 @@ __kernel void m17200_sxx (KERN_ATTR_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hash.data_length - 12; // size of input
infstream.next_in = (Bytef *)compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *)inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default
@ -937,7 +937,7 @@ __kernel void m17200_mxx (KERN_ATTR_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hash.data_length - 12; // size of input
infstream.next_in = (Bytef *)compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *)inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default

View File

@ -670,7 +670,7 @@ __kernel void m17200_sxx (KERN_ATTR_VECTOR_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hash.data_length - 12; // size of input
infstream.next_in = (Bytef *)compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *)inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default
@ -949,7 +949,7 @@ __kernel void m17200_mxx (KERN_ATTR_VECTOR_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hash.data_length - 12; // size of input
infstream.next_in = (Bytef *)compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *)inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default

View File

@ -680,7 +680,7 @@ __kernel void m17220_sxx (KERN_ATTR_RULES_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hashes[idx].data_length - 12; // size of input
infstream.next_in = (Bytef *)compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *)inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default
@ -970,7 +970,7 @@ __kernel void m17220_mxx (KERN_ATTR_RULES_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hashes[idx].data_length - 12; // size of input
infstream.next_in = (Bytef *)compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *)inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default

View File

@ -680,7 +680,7 @@ __kernel void m17220_sxx (KERN_ATTR_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hashes[idx].data_length - 12; // size of input
infstream.next_in = (Bytef *)compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *)inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default
@ -972,7 +972,7 @@ __kernel void m17220_mxx (KERN_ATTR_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hashes[idx].data_length - 12; // size of input
infstream.next_in = (Bytef *)compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *)inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default

View File

@ -684,7 +684,7 @@ __kernel void m17220_sxx (KERN_ATTR_VECTOR_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hashes[idx].data_length - 12; // size of input
infstream.next_in = (Bytef *)compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *)inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default
@ -979,7 +979,7 @@ __kernel void m17220_mxx (KERN_ATTR_VECTOR_ESALT (pkzip_t))
infstream.opaque = Z_NULL;
infstream.avail_in = esalt_bufs[digests_offset].hashes[idx].data_length - 12; // size of input
infstream.next_in = (Bytef *)compressed; // input char array
infstream.avail_out = 2048; // size of output
infstream.avail_out = MAX_UNCOMPRESSED_LENGTH; // size of output
infstream.next_out = (Bytef *)inflated; // output char array
// inflateinit2 is needed because otherwise it checks for headers by default