Projects
Mega:23.03
zziplib
_service:tar_scm:backport-0003-CVE-2020-18442.p...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-0003-CVE-2020-18442.patch of Package zziplib
From d453977f59ca59c61bf59dec28dd724498828f2a Mon Sep 17 00:00:00 2001 From: Guido Draheim <guidod@gmx.de> Date: Mon, 4 Jan 2021 21:51:12 +0100 Subject: [PATCH 03/35] #68 return value of zzip_entry_fread is signed --- bins/unzzipcat-big.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bins/unzzipcat-big.c b/bins/unzzipcat-big.c index 111ef47..ecebe11 100644 --- a/bins/unzzipcat-big.c +++ b/bins/unzzipcat-big.c @@ -26,7 +26,7 @@ static void unzzip_big_entry_fprint(ZZIP_ENTRY* entry, FILE* out) if (file) { char buffer[1024]; int len; - while ((len = zzip_entry_fread (buffer, 1024, 1, file))) + while (0 < (len = zzip_entry_fread (buffer, 1024, 1, file))) { DBG2("entry read %i", len); fwrite (buffer, len, 1, out); @@ -45,7 +45,7 @@ static void unzzip_cat_file(FILE* disk, char* name, FILE* out) if (file) { char buffer[1024]; int len; - while ((len = zzip_entry_fread (buffer, 1024, 1, file))) + while (0 < (len = zzip_entry_fread (buffer, 1024, 1, file))) fwrite (buffer, len, 1, out); zzip_entry_fclose (file); -- 1.8.3.1
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