[MacPorts] #46623: procmail @3.22 on OS X Yosemite hits "Abort trap: 6" if variable assignment uses backticks

MacPorts noreply at macports.org
Fri Jun 5 12:39:19 UTC 2020


#46623: procmail @3.22 on OS X Yosemite hits "Abort trap: 6" if variable assignment
uses backticks
-------------------------+--------------------------------
  Reporter:  macports@…  |      Owner:  macports-tickets@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.3
Resolution:              |   Keywords:
      Port:  procmail    |
-------------------------+--------------------------------

Comment (by csanchezdll):

 The problem comes from the way {{{strlcpy}}} is used. On some cases
 (notably when substituting backticks) the buffers passed to {{{strlcpy}}}
 overlap (they are the same buffer, actually). In OS X, behaviour of
 strlcpy under this circumstances is noted as "undefined" in the man page.

 I have created a pull request that disables the use of system strlcpy, and
 uses a replacement provided in procmail source code. This is the same that
 is done on systems without strlcpy (Linux, por example).
 [https://github.com/macports/macports-ports/pull/7323]

 This might be a procmail bug or not. Surely it is not MacPorts-specific,
 but might be OSX-specific ({{{strlcpy}}} is not POSIX so I am unsure on
 what is the normative behavior for overlapping buffers). Anyways, procmail
 is so seldom used these days that sticking with the code tested on Linux
 just sounds sensible.

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


More information about the macports-tickets mailing list