diff options
author | Simon Glass <sjg@chromium.org> | 2018-06-18 08:08:20 -0600 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-07-25 14:57:44 +0200 |
commit | d7ae1609a9d5a76235978e34de0e9928979af781 (patch) | |
tree | b367e3de78e421c8e682b0629d70c310e7f806a6 /lib/efi_selftest | |
parent | 282a06cbcae84acd86125210dbd54a10ff41e809 (diff) |
vsprintf: Handle NULL with %pU
At present a NULL pointer passed to printf for a %pU argument will cause
U-Boot to access memory at 0. Fix this by adding a check, and print
"(null)" instead.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Alexander Graf <agraf@suse.de>
[agraf: s/(null)/<NULL>/]
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_selftest')
0 files changed, 0 insertions, 0 deletions