summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Gurr <tgurr@gentoo.org>2007-11-16 20:13:08 +0000
committerTimo Gurr <tgurr@gentoo.org>2007-11-16 20:13:08 +0000
commit3568e08dc799abff4d7cb811c5bff4ec7372b044 (patch)
tree4fadcc49604e1733753a73e5f1dbd9021a4dfa71 /net-print/cups/files
parentamd64 stable wrt #199391 (diff)
downloadhistorical-3568e08dc799abff4d7cb811c5bff4ec7372b044.tar.gz
historical-3568e08dc799abff4d7cb811c5bff4ec7372b044.tar.bz2
historical-3568e08dc799abff4d7cb811c5bff4ec7372b044.zip
Revbump adding the patches to fix CVE-2007-4045, see bug #199195. Also remove an older vulnerable version.
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'net-print/cups/files')
-rw-r--r--net-print/cups/files/cups-1.2.4-CVE-2007-4045.patch58
-rw-r--r--net-print/cups/files/cups-1.3.4-CVE-2007-4045.patch47
-rw-r--r--net-print/cups/files/digest-cups-1.2.12-r3 (renamed from net-print/cups/files/digest-cups-1.2.12-r1)0
-rw-r--r--net-print/cups/files/digest-cups-1.3.4-r3 (renamed from net-print/cups/files/digest-cups-1.3.4-r2)0
4 files changed, 105 insertions, 0 deletions
diff --git a/net-print/cups/files/cups-1.2.4-CVE-2007-4045.patch b/net-print/cups/files/cups-1.2.4-CVE-2007-4045.patch
new file mode 100644
index 000000000000..e28a7bb4ff9d
--- /dev/null
+++ b/net-print/cups/files/cups-1.2.4-CVE-2007-4045.patch
@@ -0,0 +1,58 @@
+diff -up cups-1.2.4/scheduler/client.c.CVE-2007-4045 cups-1.2.4/scheduler/client.c
+--- cups-1.2.4/scheduler/client.c.CVE-2007-4045 2007-10-30 09:51:04.000000000 +0000
++++ cups-1.2.4/scheduler/client.c 2007-10-30 10:07:10.000000000 +0000
+@@ -105,6 +105,25 @@ static int write_file(cupsd_client_t *c
+ struct stat *filestats);
+
+
++void
++_cupsdFixClientsBIO(void)
++{
++#ifdef HAVE_LIBSSL
++ cupsd_client_t *c;
++ BIO *bio;
++ cupsArraySave (Clients);
++ for (c = (cupsd_client_t *)cupsArrayFirst(Clients);
++ c;
++ c = (cupsd_client_t *)cupsArrayNext(Clients))
++ {
++ bio = SSL_get_wbio(c->http.tls);
++ BIO_ctrl(bio, BIO_C_SET_FILE_PTR, 0, (char *)HTTP(c));
++ }
++ cupsArrayRestore (Clients);
++#endif
++}
++
++
+ /*
+ * 'cupsdAcceptClient()' - Accept a new client.
+ */
+@@ -438,6 +457,7 @@ cupsdAcceptClient(cupsd_listener_t *lis)
+ }
+
+ cupsArrayAdd(Clients, con);
++ _cupsdFixClientsBIO();
+
+ cupsdLogMessage(CUPSD_LOG_DEBUG2,
+ "cupsdAcceptClient: %d connected to server on %s:%d",
+@@ -729,6 +749,7 @@ cupsdCloseClient(cupsd_client_t *con) /*
+ */
+
+ cupsArrayRemove(Clients, con);
++ _cupsdFixClientsBIO();
+
+ free(con);
+ }
+diff -up cups-1.2.4/scheduler/main.c.CVE-2007-4045 cups-1.2.4/scheduler/main.c
+--- cups-1.2.4/scheduler/main.c.CVE-2007-4045 2007-10-30 09:51:04.000000000 +0000
++++ cups-1.2.4/scheduler/main.c 2007-10-30 09:51:05.000000000 +0000
+@@ -948,7 +948,7 @@ main(int argc, /* I - Number of comm
+ * Write data as needed...
+ */
+
+- if (con->pipe_pid && FD_ISSET(con->file, input))
++ if (con->pipe_pid && con->file >= 0 && FD_ISSET(con->file, input))
+ {
+ /*
+ * Keep track of pending input from the file/pipe separately
+
diff --git a/net-print/cups/files/cups-1.3.4-CVE-2007-4045.patch b/net-print/cups/files/cups-1.3.4-CVE-2007-4045.patch
new file mode 100644
index 000000000000..aab1b213d018
--- /dev/null
+++ b/net-print/cups/files/cups-1.3.4-CVE-2007-4045.patch
@@ -0,0 +1,47 @@
+diff -up cups-1.3.4/scheduler/client.c.CVE-2007-4045 cups-1.3.4/scheduler/client.c
+--- cups-1.3.4/scheduler/client.c.CVE-2007-4045 2007-11-07 21:11:58.000000000 +0000
++++ cups-1.3.4/scheduler/client.c 2007-11-07 21:13:26.000000000 +0000
+@@ -114,6 +114,25 @@ static int write_file(cupsd_client_t *c
+ static void write_pipe(cupsd_client_t *con);
+
+
++void
++_cupsdFixClientsBIO(void)
++{
++#ifdef HAVE_LIBSSL
++ cupsd_client_t *c;
++ BIO *bio;
++ cupsArraySave (Clients);
++ for (c = (cupsd_client_t *)cupsArrayFirst(Clients);
++ c;
++ c = (cupsd_client_t *)cupsArrayNext(Clients))
++ {
++ bio = SSL_get_wbio(c->http.tls);
++ BIO_ctrl(bio, BIO_C_SET_FILE_PTR, 0, (char *)HTTP(c));
++ }
++ cupsArrayRestore (Clients);
++#endif
++}
++
++
+ /*
+ * 'cupsdAcceptClient()' - Accept a new client.
+ */
+@@ -451,6 +470,7 @@ cupsdAcceptClient(cupsd_listener_t *lis)
+ }
+
+ cupsArrayAdd(Clients, con);
++ _cupsdFixClientsBIO();
+
+ cupsdLogMessage(CUPSD_LOG_DEBUG2,
+ "cupsdAcceptClient: %d connected to server on %s:%d",
+@@ -735,6 +755,7 @@ cupsdCloseClient(cupsd_client_t *con) /*
+ */
+
+ cupsArrayRemove(Clients, con);
++ _cupsdFixClientsBIO();
+
+ free(con);
+ }
+diff -up cups-1.3.4/scheduler/main.c.CVE-2007-4045 cups-1.3.4/scheduler/main.c
+
diff --git a/net-print/cups/files/digest-cups-1.2.12-r1 b/net-print/cups/files/digest-cups-1.2.12-r3
index 8073a9a92cbd..8073a9a92cbd 100644
--- a/net-print/cups/files/digest-cups-1.2.12-r1
+++ b/net-print/cups/files/digest-cups-1.2.12-r3
diff --git a/net-print/cups/files/digest-cups-1.3.4-r2 b/net-print/cups/files/digest-cups-1.3.4-r3
index 991c8b77ff2e..991c8b77ff2e 100644
--- a/net-print/cups/files/digest-cups-1.3.4-r2
+++ b/net-print/cups/files/digest-cups-1.3.4-r3