From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5498C001DB for ; Mon, 14 Aug 2023 06:05:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1D3DC86372; Mon, 14 Aug 2023 08:05:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1691993111; bh=8utSF/+f7rLViqEv32/VXd+3i5fDLfnS34quTpS6b2c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=k5cXWYd15pIQGmYUtChkhizn5upjf+ANvwbpeyjSOP9IRXxdE8plMNA+vy42jG9In WvqQv1i6r6MPgDUgi9fxHSb30Ww3hG0/UxS9QUdImLhyiris2S3/IBC9bn9sm6iU9k Zt39aQJTNbSCj2A+yCdnyroHOf5jNT5wXza3g6rpLcrNSXkdWlPxHz8EG048WU/+uD lmJ5EIn7G1JloWEscufe7pytsPWxY5ncJktXIsAx3OA3VPF6ENWtLvfstlv0+9qA6Q IcJm4T6sBPtRzRdwR2sbvOkau9q0o1wOxK84yglIcbx6zyNrOAc2NHr5U8CRzDVuri 2WEJOKhM2c/zg== Received: from crub (pd95f1b22.dip0.t-ipconnect.de [217.95.27.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: agust@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 1179786233; Mon, 14 Aug 2023 08:05:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1691993109; bh=8utSF/+f7rLViqEv32/VXd+3i5fDLfnS34quTpS6b2c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hSXf4JKZACjlFSA7nKFsOgsLJTQjzZWV4fmBqd99UD0QjmwrPKMAGQUOg6uLauI9/ A5tadtfi6Ql5UCBdA5mK+YOP9tkG87aTSnQfRlakGt5GfYfHpewtPL7YvwWrAQD0Ww y+WkVqtc6gaJisjstxx9ut0xTB1GnSY2c4mU2GqNfKA82amJkRj9/ND0l3r5x3PAlt oySL4fgp0ixKUw/9kcaStDhKshvdConBc2rTV1GlIqpl6n8G18zbuxd4fF3UWHsI34 xyT5eHddoL4x3kzz/xh/uJPRjr/fDsRjwlF4HS/8dVQxvRRCghAc8ckgL1L1+u6KW5 T3bgSyHRHaOpw== Date: Mon, 14 Aug 2023 08:05:08 +0200 From: Anatolij Gustschin To: Bin Meng Cc: Simon Glass , u-boot@lists.denx.de Subject: Re: [PATCH] video: vidconsole: Fix null dereference of ops->measure Message-ID: <20230814080508.78dc8980@crub> In-Reply-To: <20230803093241.1088481-1-bmeng@tinylab.org> References: <20230803093241.1088481-1-bmeng@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Thu, 3 Aug 2023 17:32:41 +0800 Bin Meng bmeng@tinylab.org wrote: > At present vidconsole_measure() tests ops->select_font before calling > ops->measure, which would result in a null dereference when the console > driver provides no ops for measure. > > Fixes: b828ed7d7929 ("console: Allow measuring the bounding box of text") > Signed-off-by: Bin Meng > --- > > drivers/video/vidconsole-uclass.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) applied to u-boot-video/master, thanks! -- Anatolij