Projects
Mega:24.03:SP1:Everything
tar
_service:tar_scm:backport-CVE-2022-48303.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-CVE-2022-48303.patch of Package tar
From 1d530107a24d71e798727d7f0afa0833473d1074 Mon Sep 17 00:00:00 2001 From: Matej Mužila <mmuzila@gmail.com> Date: Wed, 11 Jan 2023 08:55:58 +0100 Subject: [PATCH] Fix savannah bug #62387 * src/list.c (from_header): Check for the end of field after leading byte (0x80 or 0xff) of base-256 encoded header value --- src/list.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/list.c b/src/list.c index 9fafc425..bf41b581 100644 --- a/src/list.c +++ b/src/list.c @@ -899,6 +899,12 @@ from_header (char const *where0, size_t digs, char const *type, << (CHAR_BIT * sizeof (uintmax_t) - LG_256 - (LG_256 - 2))); value = (*where++ & ((1 << (LG_256 - 2)) - 1)) - signbit; + if (where == lim) + { + if (type && !silent) + ERROR ((0, 0, _("Archive base-256 value is invalid"))); + return -1; + } for (;;) { value = (value << LG_256) + (unsigned char) *where++; -- 2.38.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