Files
Cristian Magherusan-Stanciu 6021046a71 libsystem_trace: fix annotation, %P and nil %@ decoding
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
2026-11-04 10:27:04 +01:00
..
2020-02-26 23:20:58 +01:00
2020-02-26 23:20:58 +01:00