VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-12-02 23:45:10 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-12-02 23:51:49 (GMT)
commit0856b387f1f9f631a7b98202ce9fdcff22499d85 (patch)
tree952966c2fe2b1e2034f0b31742b2f8334e9a631c /src
parente4e017a2ad317f685a00c479ec0a73cc93ae74f3 (diff)
downloadVeraCrypt-0856b387f1f9f631a7b98202ce9fdcff22499d85.zip
VeraCrypt-0856b387f1f9f631a7b98202ce9fdcff22499d85.tar.gz
Windows: Update libzip to version 1.5.1
Diffstat (limited to 'src')
-rw-r--r--src/Common/libzip/NEWS.md11
-rw-r--r--src/Common/libzip/zip_dirent.c2
-rw-r--r--src/Common/libzip/zip_source_buffer.c2
3 files changed, 13 insertions, 2 deletions
diff --git a/src/Common/libzip/NEWS.md b/src/Common/libzip/NEWS.md
index a4bc5f9..ab2be0a 100644
--- a/src/Common/libzip/NEWS.md
+++ b/src/Common/libzip/NEWS.md
@@ -1,3 +1,14 @@
+1.5.1 [2018-04-11]
+==================
+
+* Choose format of installed documentation based on available tools.
+* Fix visibility of symbols.
+* Fix zipcmp directory support.
+* Don't set RPATH on Linux.
+* Use Libs.private for link dependencies in pkg-config file.
+* Fix build with LibreSSL.
+* Various bugfixes.
+
1.5.0 [2018-03-11]
==================
diff --git a/src/Common/libzip/zip_dirent.c b/src/Common/libzip/zip_dirent.c
index 060e1e9..a6dbfac 100644
--- a/src/Common/libzip/zip_dirent.c
+++ b/src/Common/libzip/zip_dirent.c
@@ -536,7 +536,7 @@ _zip_dirent_read(zip_dirent_t *zde, zip_source_t *src, zip_buffer_t *buffer, boo
if (zde->offset == ZIP_UINT32_MAX)
zde->offset = _zip_buffer_get_64(ef_buffer);
if (zde->disk_number == ZIP_UINT16_MAX)
- zde->disk_number = _zip_buffer_get_32(buffer);
+ zde->disk_number = _zip_buffer_get_32(ef_buffer);
}
if (!_zip_buffer_eof(ef_buffer)) {
diff --git a/src/Common/libzip/zip_source_buffer.c b/src/Common/libzip/zip_source_buffer.c
index 05ade4a..d2bc8ad 100644
--- a/src/Common/libzip/zip_source_buffer.c
+++ b/src/Common/libzip/zip_source_buffer.c
@@ -562,7 +562,7 @@ buffer_write(buffer_t *buffer, const zip_uint8_t *data, zip_uint64_t length, zip
memcpy(buffer->fragments[i].data + fragment_offset, data + n, left);
- if (n == buffer->fragments[i].length - fragment_offset) {
+ if (left == buffer->fragments[i].length - fragment_offset) {
i++;
}
n += left;