|
@@ 2838-2841 (lines=4) @@
|
| 2835 |
|
@gzclose($v_file_compressed); |
| 2836 |
|
|
| 2837 |
|
// ----- Check the minimum file size |
| 2838 |
|
if (filesize($v_gzip_temp_name) < 18) { |
| 2839 |
|
PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'gzip temporary file \''.$v_gzip_temp_name.'\' has invalid filesize - should be minimum 18 bytes'); |
| 2840 |
|
return PclZip::errorCode(); |
| 2841 |
|
} |
| 2842 |
|
|
| 2843 |
|
// ----- Extract the compressed attributes |
| 2844 |
|
if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) { |
|
@@ 4620-4628 (lines=9) @@
|
| 4617 |
|
$v_binary_data = fread($this->zip_fd, 18); |
| 4618 |
|
|
| 4619 |
|
// ----- Look for invalid block size |
| 4620 |
|
if (strlen($v_binary_data) != 18) |
| 4621 |
|
{ |
| 4622 |
|
|
| 4623 |
|
// ----- Error log |
| 4624 |
|
PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid End of Central Dir Record size : ".strlen($v_binary_data)); |
| 4625 |
|
|
| 4626 |
|
// ----- Return |
| 4627 |
|
return PclZip::errorCode(); |
| 4628 |
|
} |
| 4629 |
|
|
| 4630 |
|
// ----- Extract the values |
| 4631 |
|
$v_data = unpack('vdisk/vdisk_start/vdisk_entries/ventries/Vsize/Voffset/vcomment_size', $v_binary_data); |