Blame SOURCES/autotrace-0.31.1-CVE-2016-7392.patch

b7cf7d
Subject: Fix heap-based buffer overflow in pstoedit_suffix_table_init
b7cf7d
ID: CVE-2016-7392
b7cf7d
Author: unknown (taken from DLA-621-1)
b7cf7d
Bug-Debian: https://bugs.debian.org/837599
b7cf7d
b7cf7d
--- a/output-pstoedit.c
b7cf7d
+++ b/output-pstoedit.c
b7cf7d
@@ -84,7 +84,7 @@
b7cf7d
       dd_tmp   = dd_start;
b7cf7d
       while (dd_tmp->symbolicname)
b7cf7d
 	dd_tmp++;
b7cf7d
-      XMALLOC(pstoedit_suffix_table, sizeof(char *) * 2 * (dd_tmp - dd_start) + 1);
b7cf7d
+      XMALLOC(pstoedit_suffix_table, sizeof(char *) * (2 * (dd_tmp - dd_start) + 1));
b7cf7d
 
b7cf7d
 #if defined (OUTPUT_PSTOEDIT_DEBUG) && defined(__GNUC__)
b7cf7d
   fprintf(stderr, "OUTPUT PSTOEDIT BACKEND DEBUG(%s)\n", __FUNCTION__);