From: Alexander Graf Date: Mon, 18 Jun 2018 16:47:06 +0200 Subject: [U-Boot] [PATCH v8 15/30] vsprintf: Handle NULL with %pU In-Reply-To: <20180618140835.195901-16-sjg@chromium.org> References: <20180618140835.195901-1-sjg@chromium.org> <20180618140835.195901-16-sjg@chromium.org> Message-ID: <15e30065-62f9-43cf-2f80-6cc157fbe5ac@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/18/2018 04:08 PM, Simon Glass wrote: > 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 Reviewed-by: Alexander Graf Alex