aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxxf86dga/0003-buffer-overflow-in-XDGAQueryModes-CVE-2013-2000-1-2.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-06 16:16:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-06 16:17:03 +0000
commitba5259e879b12c3266333e072624037d67f37be4 (patch)
treec46a7c64ba2ffef0134fe10dbb47ca53282c53cb /main/libxxf86dga/0003-buffer-overflow-in-XDGAQueryModes-CVE-2013-2000-1-2.patch
parenta2e6a170d7f82935f55d6b1dfd7cd408475983cd (diff)
downloadaports-ba5259e879b12c3266333e072624037d67f37be4.tar.bz2
aports-ba5259e879b12c3266333e072624037d67f37be4.tar.xz
main/libxxf86dga: upgrade to 1.1.4
Diffstat (limited to 'main/libxxf86dga/0003-buffer-overflow-in-XDGAQueryModes-CVE-2013-2000-1-2.patch')
-rw-r--r--main/libxxf86dga/0003-buffer-overflow-in-XDGAQueryModes-CVE-2013-2000-1-2.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/main/libxxf86dga/0003-buffer-overflow-in-XDGAQueryModes-CVE-2013-2000-1-2.patch b/main/libxxf86dga/0003-buffer-overflow-in-XDGAQueryModes-CVE-2013-2000-1-2.patch
deleted file mode 100644
index 9123d7f3ba..0000000000
--- a/main/libxxf86dga/0003-buffer-overflow-in-XDGAQueryModes-CVE-2013-2000-1-2.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 5dcfa6a8cf2df39828da733e5945e730518c27b3 Mon Sep 17 00:00:00 2001
-From: Alan Coopersmith <alan.coopersmith@oracle.com>
-Date: Sat, 13 Apr 2013 12:27:10 -0700
-Subject: [PATCH 3/6] buffer overflow in XDGAQueryModes() [CVE-2013-2000 1/2]
-
-When reading the name strings for the modes off the network, we never
-checked to make sure the length of the individual name strings didn't
-overflow the size of the buffer we'd allocated based on the reported
-rep.length for the total reply size.
-
-Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
-Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
----
- src/XF86DGA2.c | 13 ++++++++++---
- 1 file changed, 10 insertions(+), 3 deletions(-)
-
-diff --git a/src/XF86DGA2.c b/src/XF86DGA2.c
-index 8830266..b5145ee 100644
---- a/src/XF86DGA2.c
-+++ b/src/XF86DGA2.c
-@@ -356,9 +356,16 @@ XDGAMode* XDGAQueryModes(
- modes[i].reserved1 = info.reserved1;
- modes[i].reserved2 = info.reserved2;
-
-- _XRead(dpy, offset, info.name_size);
-- modes[i].name = offset;
-- offset += info.name_size;
-+ if (info.name_size > 0 && info.name_size <= size) {
-+ _XRead(dpy, offset, info.name_size);
-+ modes[i].name = offset;
-+ modes[i].name[info.name_size - 1] = '\0';
-+ offset += info.name_size;
-+ size -= info.name_size;
-+ } else {
-+ _XEatData(dpy, info.name_size);
-+ modes[i].name = NULL;
-+ }
- }
- *num = rep.number;
- } else
---
-1.8.2.3
-