Files
metal2vulkan/crates
Anees Iqbal dcaf3085a0 Container: functions of a shared-module library may share one empty metadata record
macOS 11's own Core Image libraries (file type 1, format 2.5; reims's 11.7.11 guests, 118977 and
320632 bytes) name one 8-byte private-metadata record, a size word and ENDT, from every function, over
the one module they share; the parser refused the second function's entry with BadOffset (at 245 and
223), so the guest's Core Image got "Invalid library file". In a library whose functions share a module
(Core Image kernel, dynamic), a function may now name exactly the record the previous one did when it
holds no tags; a shared record holding a tag, and any sharing in an executable library, stay
BadOffset, so parsing stays linear in the file size. Test: a 2.5 Core Image library sharing one empty
private record parses with no private tags; the tagged and executable variants are refused.

(cherry picked from commit 200ca7984d84dde9aba214115e4df5745ade5123)
2026-11-08 03:06:55 -08:00
..