Design and approach
Should stderr warnings use the same escaping? (test/functional/wallet_startup.py:115, head)
This test accepts a wallet-controlled newline in the startup warning on stderr, although it checks that the debug-log copy is escaped. In the no-UI path, the warning is also written directly to stderr from message.original, so a launcher or service collecting stderr can receive a forged extra diagnostic line. If captured stderr is within the protection boundary, escape this output, or the untrusted text before it reaches this sink, and assert that behavior. This would display the newline as \x0a, changing its human-facing rendering. If stderr is intentionally out of scope, make that boundary explicit.
Review coverage was incomplete. The adversarial review had incomplete evidence.