#43632: cdrtools @3.00_1: mkisofs receives abort trap on Mavericks host if -graft- points option is used -------------------------+-------------------------------- Reporter: galitsyn@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: mkisofs Port: cdrtools | -------------------------+-------------------------------- Comment (by galitsyn@…): Oh, the patch above is not correct =) The below one looks a bit better: {{{ --- cdrtools-3.00/mkisofs/mkisofs.c.orig 2010-04-25 18:29:03.000000000 +0400 +++ cdrtools-3.00/mkisofs/mkisofs.c 2014-05-08 19:25:14.000000000 +0400 @@ -3235,15 +3235,16 @@ /* * Remove unwanted "./" & "/" sequences from start... */ + xpnt = graft_point; + size_t gidx = 0; do { - xpnt = graft_point; while (xpnt[0] == '.' && xpnt[1] == '/') xpnt += 2; while (*xpnt == PATH_SEPARATOR) { xpnt++; } - strlcpy(graft_point, xpnt, glen); - } while (xpnt > graft_point); + } while ((xpnt[0] == '.' || xpnt[0] == '/') && gidx++ < glen); + graft_point = xpnt; if (node) { node = escstrcpy(nodename, nlen, ++node); }}} -- Ticket URL: <https://trac.macports.org/ticket/43632#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X