mirror of
https://github.com/VibeDarling/darling-libtrace.git
synced 2026-11-15 18:42:33 -10:00
A {public}/{private} annotation after other text moved formatString but
not formatIndex, so the next specifier was read from the wrong offset.
Advance formatIndex instead, and assert on an unterminated brace.
%P read bytes through a signed char, so 0x80 and above printed as
ffffff80. Read them as uint8_t.
%@ with a nil object printed <nil: 0x0>; leave the argument unset so it
prints (null) like the other pointer specifiers.
The host test gains a case for each and builds unpack_buffer.m with
-fsigned-char so the %P case is observable on arm hosts.
Refs VibeDarling/darling#1372