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