commit | d7ae1609a9d5a76235978e34de0e9928979af781 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Jun 18 08:08:20 2018 -0600 |
committer | Alexander Graf <agraf@suse.de> | Wed Jul 25 14:57:44 2018 +0200 |
tree | b367e3de78e421c8e682b0629d70c310e7f806a6 | |
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>