Projects
openEuler:24.03:SP1:Everything
zlib
_service:tar_scm:backport-Fix-crash-when-gzsetp...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-Fix-crash-when-gzsetparams-attempted-for-transparent-write.patch of Package zlib
From 02a6049eb3884c430268bb0fe3296d597a03174c Mon Sep 17 00:00:00 2001 From: Mark Adler <madler@alumni.caltech.edu> Date: Mon, 26 Dec 2022 23:36:01 -0800 Subject: [PATCH] Fix crash when gzsetparams() attempted for transparent write. gzsetparams() now returns a Z_STREAM_ERROR in this case.i Reference:https://github.com/madler/zlib/commit/02a6049eb3884c430268bb0fe3296d597a03174c Conflict:NA --- gzwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gzwrite.c b/gzwrite.c index eb8a0e589..3030d74d6 100644 --- a/gzwrite.c +++ b/gzwrite.c @@ -609,7 +609,7 @@ int ZEXPORT gzsetparams(file, level, strategy) strm = &(state->strm); /* check that we're writing and that there's no error */ - if (state->mode != GZ_WRITE || state->err != Z_OK) + if (state->mode != GZ_WRITE || state->err != Z_OK || state->direct) return Z_STREAM_ERROR; /* if no change is requested, then do nothing */
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2