tags 742873 + patch
thanks

Too bad it's too late for jessie...

>From 18bbc237763955c150da72daf9be2b9702fefb0a Mon Sep 17 00:00:00 2001
From: Yann Dirson <ydir...@free.fr>
Date: Sat, 15 Nov 2014 16:45:50 +0000
Subject: [PATCH] Fix CVE-2013-1953

---
 debian/changelog                   |  8 ++++++++
 debian/patches/CVE-2013-1953.patch | 11 +++++++++++
 debian/patches/series              |  1 +
 3 files changed, 20 insertions(+)
 create mode 100644 debian/patches/CVE-2013-1953.patch

diff --git a/debian/changelog b/debian/changelog
index a12c511..42fdfc8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+autotrace (0.31.1-16+nmu1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix buffer overflow (Closes: #742873, CVE-2013-1953), patch from
+    https://bugzilla.redhat.com/show_bug.cgi?id=951257.
+
+ -- Yann Dirson <dir...@debian.org>  Sat, 15 Nov 2014 16:45:25 +0100
+
 autotrace (0.31.1-16) unstable; urgency=low
 
   * Bumped Standards-Version to 3.9.2
diff --git a/debian/patches/CVE-2013-1953.patch 
b/debian/patches/CVE-2013-1953.patch
new file mode 100644
index 0000000..bcf12f6
--- /dev/null
+++ b/debian/patches/CVE-2013-1953.patch
@@ -0,0 +1,11 @@
+--- autotrace-0.31.1/input-bmp.c.orig  2002-10-10 22:44:08.000000000 +0200
++++ autotrace-0.31.1/input-bmp.c.orig  2013-06-28 10:24:58.336056959 +0200
+@@ -166,7 +166,7 @@ input_bmp_reader (at_string filename,
+                                                         /* 36 */
+       Maps = 4;
+     }
+-  else if (Bitmap_File_Head.biSize <= 64) /* Probably OS/2 2.x */
++  else if (Bitmap_File_Head.biSize >= 40 && Bitmap_File_Head.biSize <= 64) /* 
Probably OS/2 2.x */
+     {
+       if (!ReadOK (fd, buffer, Bitmap_File_Head.biSize - 4))
+       {
diff --git a/debian/patches/series b/debian/patches/series
index cb1473f..f559677 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ output-pdf.c.patch
 output-pstoedit.c.patch
 output-pstoedit.h.patch
 README.patch
+CVE-2013-1953.patch
-- 
2.1.3


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to