Projects
openEuler:Mainline
cups
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
_service:tar_scm:cups.spec
Changed
@@ -3,7 +3,7 @@ Name: cups Epoch: 1 Version: 2.4.0 -Release: 5 +Release: 7 Summary: CUPS is the standards-based, open source printing system for linux operating systems. License: GPLv2+ and LGPLv2+ with exceptions and AML Url: https://openprinting.github.io/cups/ @@ -27,6 +27,8 @@ Patch6000: backport-CVE-2022-26691.patch Patch6001: backport-Remove-legacy-code-for-RIP_MAX_CACHE-environment-variable.patch Patch6002: backport-Also-fix-cupsfilter.patch +Patch6003: backport-CVE-2023-32324.patch +Patch6004: fix-httpAddrGetList-test-case-fail.patch BuildRequires: pam-devel pkgconf-pkg-config pkgconfig(gnutls) libacl-devel openldap-devel pkgconfig(libusb-1.0) BuildRequires: krb5-devel pkgconfig(avahi-client) systemd pkgconfig(libsystemd) pkgconfig(dbus-1) python3-cups @@ -448,6 +450,12 @@ %doc %{_datadir}/%{name}/www/apple-touch-icon.png %changelog +* Fri Jun 9 2023 zhangpan <zhangpan103@h-partners.com> - 1:2.4.0-7 +- fix build error + +* Sat Jun 3 2023 zhouwenpei <zhouwenpei@h-partners.com> - 1:2.4.0-6 +- fix CVE-2023-32324 + * Tue Feb 21 2023 zhouwenpei <zhouwenpei@h-partners.com> - 2.4.0-5 - fix update conflict of devel and help
View file
_service:tar_scm:backport-CVE-2023-32324.patch
Added
@@ -0,0 +1,37 @@ +From fd8bc2d32589d1fd91fe1c0521be2a7c0462109e Mon Sep 17 00:00:00 2001 +From: Zdenek Dohnal <zdohnal@redhat.com> +Date: Thu, 1 Jun 2023 12:04:00 +0200 +Subject: PATCH cups/string.c: Return if `size` is 0 (fixes CVE-2023-32324) + +Reference:https://github.com/OpenPrinting/cups/commit/fd8bc2d32589d1fd91fe1c0521be2a7c0462109e +Conflict:NA + +--- + cups/string.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/cups/string.c b/cups/string.c +index 93cdad1..5def888 100644 +--- a/cups/string.c ++++ b/cups/string.c +@@ -1,6 +1,7 @@ + /* + * String functions for CUPS. + * ++ * Copyright © 2023 by OpenPrinting. + * Copyright © 2007-2019 by Apple Inc. + * Copyright © 1997-2007 by Easy Software Products. + * +@@ -730,6 +731,9 @@ _cups_strlcpy(char *dst, /* O - Destination string */ + size_t srclen; /* Length of source string */ + + ++ if (size == 0) ++ return (0); ++ + /* + * Figure out how much room is needed... + */ +-- +2.27.0 +
View file
_service:tar_scm:fix-httpAddrGetList-test-case-fail.patch
Added
@@ -0,0 +1,44 @@ +From 079c00aac0db4d95383cf73be73e641ff26ebfc6 Mon Sep 17 00:00:00 2001 +From: zhangpan <zhangpan103@h-partners.com> +Date: Fri, 9 Jun 2023 11:04:18 +0800 +Subject: PATCH fix httpAddrGetList test case fail + +--- + cups/testhttp.c | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +diff --git a/cups/testhttp.c b/cups/testhttp.c +index 313e4bb..f446d65 100644 +--- a/cups/testhttp.c ++++ b/cups/testhttp.c +@@ -14,7 +14,7 @@ + */ + + #include "cups-private.h" +- ++#include <unistd.h> + + /* + * Types and structures... +@@ -231,7 +231,8 @@ main(int argc, /* I - Number of command-line arguments */ + char schemeHTTP_MAX_URI, /* Scheme from URI */ + hostnameHTTP_MAX_URI, /* Hostname from URI */ + usernameHTTP_MAX_URI, /* Username:password from URI */ +- resourceHTTP_MAX_URI; /* Resource from URI */ ++ resourceHTTP_MAX_URI, /* Resource from URI */ ++ localhostnameHTTP_MAX_URI; /* gethostname */ + int port; /* Port number from URI */ + http_uri_status_t uri_status; /* Status of URI separation */ + http_addrlist_t *addrlist, /* Address list */ +@@ -391,7 +392,7 @@ main(int argc, /* I - Number of command-line arguments */ + + printf("httpAddrGetList(%s): ", hostname); + +- addrlist = httpAddrGetList(hostname, AF_UNSPEC, NULL); ++ addrlist = httpAddrGetList(gethostname(localhostname, sizeof(localhostname)), AF_UNSPEC, NULL); + if (addrlist) + { + for (i = 0, addr = addrlist; addr; i ++, addr = addr->next) +-- +2.33.0 +
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