mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-01-04 20:58:12 -06:00
Libzip (#1152)
* Update LZMA to latest * Update Libzip Libzip updated to latest.
This commit is contained in:
@@ -57,7 +57,7 @@ _zip_file_get_offset(const zip_t *za, zip_uint64_t idx, zip_error_t *error) {
|
||||
offset = za->entry[idx].orig->offset;
|
||||
|
||||
if (zip_source_seek(za->src, (zip_int64_t)offset, SEEK_SET) < 0) {
|
||||
_zip_error_set_from_source(error, za->src);
|
||||
zip_error_set_from_source(error, za->src);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -93,11 +93,11 @@ _zip_file_get_end(const zip_t *za, zip_uint64_t index, zip_error_t *error) {
|
||||
if (entry->bitflags & ZIP_GPBF_DATA_DESCRIPTOR) {
|
||||
zip_uint8_t buf[4];
|
||||
if (zip_source_seek(za->src, (zip_int64_t)offset, SEEK_SET) < 0) {
|
||||
_zip_error_set_from_source(error, za->src);
|
||||
zip_error_set_from_source(error, za->src);
|
||||
return 0;
|
||||
}
|
||||
if (zip_source_read(za->src, buf, 4) != 4) {
|
||||
_zip_error_set_from_source(error, za->src);
|
||||
zip_error_set_from_source(error, za->src);
|
||||
return 0;
|
||||
}
|
||||
if (memcmp(buf, DATADES_MAGIC, 4) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user