bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #55257] xtotroff.c: Defined size of the array "encoding" is too sho


From: Bjarni Ingi Gislason
Subject: [bug #55257] xtotroff.c: Defined size of the array "encoding" is too short
Date: Mon, 30 Nov 2020 19:38:09 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #2, bug #55257 (project groff):

  The patch that I have been using:

--- /tmp/xtotroff.c     2020-12-01 00:05:44.000000000 +0000
+++ xtotroff.c  2020-12-01 00:06:08.000000000 +0000
@@ -127,7 +127,7 @@ static int MapFont(char *font_name, cons
   XFontName parsed;
   int j, k;
   DviCharNameMap *char_map;
-  char encoding[256];
+  char encoding[2*256+1+1]; /* Format '%s-%s', each %s is 256 bytes */
   char *s;
   int wid;
   char name_string[2048];



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55257>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]