Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2669539yba; Sun, 28 Apr 2019 06:25:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXEnEfy9mgZmJBR831Zx9rxS6BRUbYLYJrGT2zbniHeIdaPynriPYhyYZoj/1gVWl8g7qR X-Received: by 2002:a65:6686:: with SMTP id b6mr14366381pgw.419.1556457917180; Sun, 28 Apr 2019 06:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556457917; cv=none; d=google.com; s=arc-20160816; b=1Hlv4P/oNiVidwbsDRvJSCnZWaaAsIEIg41F0VwcAmEtoq5uDtcLaR8vT/y8RdntaR ZnqBP2FfOeq+TH2mKUZQAaqoDwTU5J7aqMLtLG6Obe9hwkk9k1Y4uw+mshgePtBGTbxB iQNRp5dJ//eL1v+FpMj0LEArMSlqixY+OYbn/W8S/+ZXXSEGeVQq9DnuLb/pmMhaFAnQ k3nbeFkLROcNqTFdjOQwm2Nt7vueBu2GgTjifgljEt+qgwooIgctU16tRgsgE85koam1 Azh0zNwkM0gSGPECBg1xpcEGfXsESVvzQNarvBmlzU+e4tPx2ql7FdK5uQEeelBOTkjB Qp1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=4jMqLvV0gvZRLB/RMyfNukgFHJck08VEY6lrzyPZC4E=; b=tWnnB5Xpc3GkDEsLDQVgBnWGOlnEggW5MYuNzLgr2g1cPpcFi7yCXY86/jwMuW1iBA x3+gIsQ3BlprZBgiT4kpa3mKNu6MAuQjg0B+AUtWLzvf4qKMD8cMqL21kTDN1oV5UNXk LA/NIBjk3jwVbymjAnwYcbNKmVPe2cLZDWHhjwf9nmcb87fNmSKUSC2Ou1u4b0Bdl4wQ 6AmwW3yAM5uooANLzuqXh1PaO6xRTEkMhXh/gTMKrzqB+G6vcNAueKUlk3Du3zcwFhFj almCGA2OhJ/lM25wVqySgkyuUk5HMvX5gEYj+wg/nMcr38YxcywzUQftCsAnOIVKY3T0 umHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o123si8906155pga.460.2019.04.28.06.24.28; Sun, 28 Apr 2019 06:25:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbfD1NVv (ORCPT + 99 others); Sun, 28 Apr 2019 09:21:51 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:58374 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726546AbfD1NVv (ORCPT ); Sun, 28 Apr 2019 09:21:51 -0400 Received: from callcc.thunk.org (75-104-85-109.mobility.exede.net [75.104.85.109] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x3SDLRqG015813 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 28 Apr 2019 09:21:35 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 8DF54420023; Sun, 28 Apr 2019 09:21:26 -0400 (EDT) Date: Sun, 28 Apr 2019 09:21:26 -0400 From: "Theodore Ts'o" To: Gabriel Krisman Bertazi Cc: Masahiro Yamada , Olaf Weber , Gabriel Krisman Bertazi , Michal Marek , Linux Kbuild mailing list , Colin King , kernel-janitors@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH][next] unicode: fix dereference of a potentially null pointer Message-ID: <20190428132126.GB24089@mit.edu> Mail-Followup-To: Theodore Ts'o , Gabriel Krisman Bertazi , Masahiro Yamada , Olaf Weber , Gabriel Krisman Bertazi , Michal Marek , Linux Kbuild mailing list , Colin King , kernel-janitors@vger.kernel.org, Linux Kernel Mailing List References: <20190426222237.13209-1-colin.king@canonical.com> <85ef5mcrze.fsf@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85ef5mcrze.fsf@collabora.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 28, 2019 at 07:02:45AM -0400, Gabriel Krisman Bertazi wrote: > > On Sat, Apr 27, 2019 at 7:22 AM Colin King wrote: > >> > >> From: Colin Ian King > >> > >> The pointer 'tree' is deferenced when assigning pointer 'trie', however > >> trie is being null checked a few lines later, so it could potentially > >> be null. Fix the potential null pointer dereference by only dereferencing > >> it after it has been null checked. > >> > >> Addresses-Coverity: ("Dereference before null check") > >> Fixes: b08fcacaaaf4 ("unicode: introduce UTF-8 character database") > >> Signed-off-by: Colin Ian King > > Acked-by: Gabriel Krisman Bertazi > > Ted, can you pick this up directly for now? Ack, I've merged it into the the patch "unicode: introduce UTF-8 character database". - Ted