Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
15a49f1b
Unverified
Commit
15a49f1b
authored
Aug 04, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix uncompressing concatenated gzip files
parent
db1dff16
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
include/cif++/gzio.hpp
+7
-1
No files found.
include/cif++/gzio.hpp
View file @
15a49f1b
...
...
@@ -246,10 +246,13 @@ class basic_igzip_streambuf : public basic_streambuf<CharT, Traits>
zstream
.
avail_in
=
static_cast
<
uInt
>
(
this
->
m_upstream
->
sgetn
(
m_in_buffer
.
data
(),
m_in_buffer
.
size
()));
}
if
(
zstream
.
avail_in
==
0
)
break
;
int
err
=
::
inflate
(
&
zstream
,
Z_SYNC_FLUSH
);
std
::
streamsize
n
=
kBufferByteSize
-
zstream
.
avail_out
;
if
(
err
==
Z_STREAM_END
or
(
err
==
Z_OK
and
n
>
0
)
)
if
(
n
>
0
)
{
this
->
setg
(
m_out_buffer
.
data
(),
...
...
@@ -258,6 +261,9 @@ class basic_igzip_streambuf : public basic_streambuf<CharT, Traits>
break
;
}
if
(
err
==
Z_STREAM_END
and
zstream
.
avail_in
>
0
)
err
=
::
inflateReset2
(
&
zstream
,
47
);
if
(
err
<
Z_OK
)
break
;
}
...
...
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