[MacPorts] #66153: cdparanoia: Assertion failed: (range.location + range.length <= dataLength), function __CFDataValidateRange, file CFData.c, line 235

MacPorts noreply at macports.org
Mon Jan 30 14:53:52 UTC 2023


#66153: cdparanoia: Assertion failed: (range.location + range.length <=
dataLength), function __CFDataValidateRange, file CFData.c, line 235
-------------------------+---------------------------
  Reporter:  Jtaillan    |      Owner:  jeremyhu
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  ventura arm64
      Port:  cdparanoia  |
-------------------------+---------------------------

Comment (by chrstphrchvz):

 I have not reproduced this issue myself nor looked into it deeply, but
 from finding a similar error in another program (see
 [https://github.com/xmrig/xmrig/issues/3185] and
 [https://github.com/xmrig/xmrig/commit/770b71c]), I suspect the bug is
 near [https://github.com/macports/macports-
 ports/blob/d3272007c0ea/audio/cdparanoia/files/osx_interface.patch#L459-L468]:
 `CFGetDataBytes()` is being called with a range of `CFRangeMake(0,
 CFDataGetLength(data) + 1)`, whereas
 [https://developer.apple.com/documentation/corefoundation/1541940-cfdatagetbytes?language=objc]
 says that a range of `CFRangeMake(0, CFDataGetLength(data))` should be
 used when retrieving all data.

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


More information about the macports-tickets mailing list