[MacPorts] #58323: gettext @0.19.8.1: Running msgfmt to build Java2 resources crashes with specific string lengths of msgctxt and msgid
MacPorts
noreply at macports.org
Wed Apr 10 11:52:04 UTC 2019
#58323: gettext @0.19.8.1: Running msgfmt to build Java2 resources crashes with
specific string lengths of msgctxt and msgid
----------------------+------------------------
Reporter: p3k | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gettext |
----------------------+------------------------
Comment (by jmroot):
There's an off-by-one error in msgid_hashcode which results in a string
not being null-terminated correctly, which leads to a stack overflow. I
guess malloc is allocating in 16-byte chunks and the memory is usually
starting zeroed, so unless your string ends exactly on the boundary you
don't see the issue.
--
Ticket URL: <https://trac.macports.org/ticket/58323#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list