pid1: do not use generated strings as format strings (#19098)
authorLincoln Ramsay <a1291762@gmail.com>
Wed, 24 Mar 2021 07:37:25 +0000 (17:37 +1000)
committerGitHub <noreply@github.com>
Wed, 24 Mar 2021 07:37:25 +0000 (16:37 +0900)
commit7325a2b2d15af09a9389723d6153050130c0bd36
tree6ee70506c074827ba2d545e9310cecdc334b7194
parent6b1ed5e7e68fc5992a7bdabe4a05a7a3e1e1d898
pid1: do not use generated strings as format strings (#19098)

The generated string may include %, which will confuse both the
xprintf call, and the VA_FORMAT_ADVANCE macro.

Pass the generated string as an argument to a "%s" format string
instead.
src/core/transaction.c