[MacPorts] #69374: gcc13 optimizer bug in ncurses

MacPorts noreply at macports.org
Sat Feb 24 00:32:41 UTC 2024


#69374: gcc13 optimizer bug in ncurses
---------------------------+--------------------
  Reporter:  ThomasDickey  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  gcc13         |
---------------------------+--------------------

Comment (by ThomasDickey):

 I found the problem; it is simple to explain.  ncurses uses the symbol
 MB_LEN_MAX,
 which has a fallback definition in limits.h -- which is too short to use
 -- while
 the "real" definition is lacking in gcc13 (since I've encountered the
 problem on
 three machines, that rules out "environment stuff").  The effect of the
 too-short
 definition is a buffer overrun.  I'll make a workaround in ncurses, but it
 would
 be nice to fix the port.

 (I'll see if I can find where the proper definition comes from in gcc12).

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


More information about the macports-tickets mailing list