Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
a254f5a3
Commit
a254f5a3
authored
Nov 24, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archive/zzip: fix inverted error handler
Set the Error when zzip_seek()==-1 and not on success. Fixes a crash after seeking.
parent
143c735f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
NEWS
NEWS
+2
-0
ZzipArchivePlugin.cxx
src/archive/ZzipArchivePlugin.cxx
+5
-4
No files found.
NEWS
View file @
a254f5a3
ver 0.18.19 (not yet released)
ver 0.18.19 (not yet released)
* archive
- zzip: fix crash after seeking
ver 0.18.18 (2014/11/18)
ver 0.18.18 (2014/11/18)
* decoder
* decoder
...
...
src/archive/ZzipArchivePlugin.cxx
View file @
a254f5a3
...
@@ -186,12 +186,13 @@ zzip_input_seek(InputStream *is, InputPlugin::offset_type offset,
...
@@ -186,12 +186,13 @@ zzip_input_seek(InputStream *is, InputPlugin::offset_type offset,
{
{
ZzipInputStream
*
zis
=
(
ZzipInputStream
*
)
is
;
ZzipInputStream
*
zis
=
(
ZzipInputStream
*
)
is
;
zzip_off_t
ofs
=
zzip_seek
(
zis
->
file
,
offset
,
whence
);
zzip_off_t
ofs
=
zzip_seek
(
zis
->
file
,
offset
,
whence
);
if
(
ofs
!=
-
1
)
{
if
(
ofs
<
0
)
{
error
.
Set
(
zzip_domain
,
"zzip_seek() has failed"
);
error
.
Set
(
zzip_domain
,
"zzip_seek() has failed"
);
is
->
offset
=
ofs
;
return
false
;
return
true
;
}
}
return
false
;
is
->
offset
=
ofs
;
return
true
;
}
}
/* exported structures */
/* exported structures */
...
...
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