fixed static limit for uncompress output to length defined

pull/1962/head
Sein Coray 5 years ago
parent 2da33ab0ba
commit c768073f60
No known key found for this signature in database
GPG Key ID: 44C4180EA69758EC

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

Loading…
Cancel
Save