Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
1865806e
Unverified
Commit
1865806e
authored
Dec 16, 2020
by
Edward Thomson
Committed by
GitHub
Dec 16, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5740 from libgit2/ethomson/zlib
pack: continue zlib while we can make progress
parents
4ab9567f
93f61c5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/pack.c
+9
-4
No files found.
src/pack.c
View file @
1865806e
...
...
@@ -908,7 +908,7 @@ static int packfile_unpack_compressed(
do
{
size_t
bytes
=
buffer_len
-
total
;
unsigned
int
window_len
;
unsigned
int
window_len
,
consumed
;
unsigned
char
*
in
;
if
((
in
=
pack_window_open
(
p
,
mwindow
,
*
position
,
&
window_len
))
==
NULL
)
{
...
...
@@ -924,10 +924,15 @@ static int packfile_unpack_compressed(
git_mwindow_close
(
mwindow
);
if
(
!
bytes
)
break
;
consumed
=
window_len
-
(
unsigned
int
)
zstream
.
in_len
;
if
(
!
bytes
&&
!
consumed
)
{
git_error_set
(
GIT_ERROR_ZLIB
,
"error inflating zlib stream"
);
error
=
-
1
;
goto
out
;
}
*
position
+=
window_len
-
zstream
.
in_len
;
*
position
+=
consumed
;
total
+=
bytes
;
}
while
(
!
git_zstream_eos
(
&
zstream
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment