[MacPorts] #53974: texlive-basic: dvips exits with trap 6

MacPorts noreply at macports.org
Mon Jun 5 06:32:43 UTC 2017


#53974: texlive-basic: dvips exits with trap 6
----------------------------+----------------------
  Reporter:  slewsys        |      Owner:  drkp
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:  sierra
      Port:  texlive-basic  |
----------------------------+----------------------

Comment (by mojca):

 The patch above points to the right direction, but doesn't seem to be
 entirely correct. Here's a revised patch written by Akira Kakuto. Can you
 please test that one?
 {{{
 #!diff
 --- texk/dvipsk/color.c.orig
 +++ texk/dvipsk/color.c
 @@ -37,7 +37,7 @@
     struct colorpage *next;
     integer boploc; /* we use the bop loc as a page indicator */
     char *bg;
 -   char colordat[2];
 +   char *colordat;
  } *colorhash[COLORHASH];
  static char *cstack, *csp, *cend, *bg;
  /*
 @@ -84,6 +84,7 @@
     for (i=0; i<COLORHASH; i++) {
        for (p=colorhash[i]; p; p = q) {
           q = p->next;
 +         free(p->colordat);
           free(p);
        }
        colorhash[i] = 0;
 @@ -216,7 +217,8 @@
        }
     } else {
        p = (struct colorpage *)mymalloc((integer)
 -                  (strlen(cstack) + sizeof(struct colorpage) +
 MAXCOLORLEN));
 +                  (sizeof(struct colorpage)));
 +      p->colordat = mymalloc(strlen(cstack) + MAXCOLORLEN + 2);
        p->next = colorhash[h];
        p->boploc = pageloc;
        strcpy(p->colordat, cstack);
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53974#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list