Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zlib
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
la
platform
external
zlib
Commits
eda24d08
Commit
eda24d08
authored
3 years ago
by
Linux Build Service Account
Browse files
Options
Downloads
Plain Diff
Merge
491b6fc9
on remote branch
Change-Id: Ia1ffea8c2bbe7a50cb55ce4242988a17b2dcb359
parents
7190c411
491b6fc9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
METADATA
+3
-3
3 additions, 3 deletions
METADATA
google/zip_reader.cc
+7
-7
7 additions, 7 deletions
google/zip_reader.cc
with
10 additions
and
10 deletions
METADATA
+
3
−
3
View file @
eda24d08
...
...
@@ -5,11 +5,11 @@ third_party {
type: GIT
value: "https://chromium.googlesource.com/chromium/src/third_party/zlib/"
}
version: "
bf44340d1b6be1af8950bbdf664fec0cf5a831cc
"
version: "
09490503d0f201b81e03f5ca0ab8ba8ee76d4a8e
"
license_type: NOTICE
last_upgrade_date {
year: 2021
month:
2
day:
5
month:
4
day:
1
}
}
This diff is collapsed.
Click to expand it.
google/zip_reader.cc
+
7
−
7
View file @
eda24d08
...
...
@@ -101,7 +101,7 @@ ZipReader::EntryInfo::EntryInfo(const std::string& file_name_in_zip,
is_unsafe_
=
file_path_
.
ReferencesParent
();
// We also consider that the file name is unsafe, if it's invalid UTF-8.
base
::
string
16
file_name_utf16
;
std
::
u16
string
file_name_utf16
;
if
(
!
base
::
UTF8ToUTF16
(
file_name_in_zip
.
data
(),
file_name_in_zip
.
size
(),
&
file_name_utf16
))
{
is_unsafe_
=
true
;
...
...
@@ -334,9 +334,9 @@ void ZipReader::ExtractCurrentEntryToFilePathAsync(
base
::
SequencedTaskRunnerHandle
::
Get
()
->
PostTask
(
FROM_HERE
,
base
::
BindOnce
(
&
ZipReader
::
ExtractChunk
,
weak_ptr_factory_
.
GetWeakPtr
(),
Passed
(
std
::
move
(
output_file
)),
std
::
move
(
success
_callback
),
std
::
move
(
failure
_callback
)
,
progress_callback
,
0
/* initial offset */
));
std
::
move
(
output_file
)
,
std
::
move
(
success_callback
),
std
::
move
(
failure
_callback
),
progress
_callback
,
0
/* initial offset */
));
}
bool
ZipReader
::
ExtractCurrentEntryToString
(
uint64_t
max_read_bytes
,
...
...
@@ -436,9 +436,9 @@ void ZipReader::ExtractChunk(base::File output_file,
base
::
SequencedTaskRunnerHandle
::
Get
()
->
PostTask
(
FROM_HERE
,
base
::
BindOnce
(
&
ZipReader
::
ExtractChunk
,
weak_ptr_factory_
.
GetWeakPtr
(),
Passed
(
std
::
move
(
output_file
)),
std
::
move
(
success
_callback
),
std
::
move
(
failure
_callback
)
,
progress_callback
,
current_progress
));
std
::
move
(
output_file
)
,
std
::
move
(
success_callback
),
std
::
move
(
failure
_callback
),
progress
_callback
,
current_progress
));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment