diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-02-05 21:18:41 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-02-05 21:18:41 +0000 |
commit | deaa15577febf67641068fbafe80b4046ddbe924 (patch) | |
tree | 5efae9e794d2a0443ef19b68513bb7156a30975d | |
parent | 0a3c0efda6c8145f3a5d9ab3794b35dad1dfbfb0 (diff) | |
parent | 05800191592d66ec98f68cd6a94728e87f887d1c (diff) | |
download | zlib-deaa15577febf67641068fbafe80b4046ddbe924.tar.gz |
Merge "Upgrade zlib to bf44340d1b6be1af8950bbdf664fec0cf5a831cc"
-rw-r--r-- | METADATA | 4 | ||||
-rw-r--r-- | adler32.c | 4 | ||||
-rw-r--r-- | google/zip_internal.cc | 6 |
3 files changed, 7 insertions, 7 deletions
@@ -5,11 +5,11 @@ third_party { type: GIT value: "https://chromium.googlesource.com/chromium/src/third_party/zlib/" } - version: "2c183c9f93a328bfb3121284da13cf89a0f7e64a" + version: "bf44340d1b6be1af8950bbdf664fec0cf5a831cc" license_type: NOTICE last_upgrade_date { year: 2021 - month: 1 + month: 2 day: 5 } } @@ -74,10 +74,10 @@ uLong ZEXPORT adler32_z(adler, buf, len) unsigned n; #if defined(ADLER32_SIMD_SSSE3) - if (x86_cpu_enable_ssse3 && buf && len >= 64) + if (buf != Z_NULL && len >= 64 && x86_cpu_enable_ssse3) return adler32_simd_(adler, buf, len); #elif defined(ADLER32_SIMD_NEON) - if (buf && len >= 64) + if (buf != Z_NULL && len >= 64) return adler32_simd_(adler, buf, len); #endif diff --git a/google/zip_internal.cc b/google/zip_internal.cc index 9cbb78c..354fbf8 100644 --- a/google/zip_internal.cc +++ b/google/zip_internal.cc @@ -56,10 +56,10 @@ void* ZipOpenFunc(void *opaque, const char* filename, int mode) { creation_disposition = CREATE_ALWAYS; } - base::string16 filename16 = base::UTF8ToUTF16(filename); + std::wstring filenamew = base::UTF8ToWide(filename); if ((filename != NULL) && (desired_access != 0)) { - file = CreateFile(filename16.c_str(), desired_access, share_mode, - NULL, creation_disposition, flags_and_attributes, NULL); + file = CreateFile(filenamew.c_str(), desired_access, share_mode, NULL, + creation_disposition, flags_and_attributes, NULL); } if (file == INVALID_HANDLE_VALUE) |