Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4486791yba; Sun, 12 May 2019 14:19:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyw0eVo0TLJpYtGjohtoFKg5K9oyOuTAMmun+mUplRa+kvEtLg74UuDdDtgw5/st8eHy3sM X-Received: by 2002:a63:da14:: with SMTP id c20mr27230444pgh.191.1557695950815; Sun, 12 May 2019 14:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557695950; cv=none; d=google.com; s=arc-20160816; b=TMmM7FmpJQJrNpXt/Rs8zOUE/pmRH9xHtkplobmp9shV/Qzk6ggFUlZdp7Q+6I2kfk 7MA4OyKh8sdeokn/OhS1rR5RPw3vMoR4NrKqBknAf70y2pL1tma8vb5Y2/epZM4N3I92 6ZhXLW/RfCTMkenvML27+Jijdjv2N3jKYMmA/81mNw9ZzvubkDLAUD1JlP1ts6Gs4tc8 tlKgdQYAYrDqpwN6jhSm0Ig1XrHivwY7PNEDMDkfs/4GfS/CZaNGXGbiywvCjj78ba3O UkDGxKM3ArVdhbd2rXUPWiqT2TN9fAMpGsWOdB5dvMwD0625OC3gJH2nXkccqP9yNCjU bVoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:subject:cc:to:from; bh=1Q8dj4BuLIQ8OU/LV1mKASKpZGSlIfgLWYjKhhcR0as=; b=tYN1L4r9slUY5ZuwdZaL8M/L8dGYbnbuCbXdGpvRe0BD7GzX84OXXqlUuEAGEG6q/S yPY89tBCCngFDEFz6LRfmuke0LrteDLayC9m5EB1amviH3pAnMBKxc4eIRwEqoxFlI3S y1qjY8QYc3pQzomSLG7J8DTsGi97XSvVsVwUFMoZ5BMQe3nqABBhvBdYfF2+cBjt6Jhp N1LxVDQDr9q/FMRkuRwD/NhD9vlEPrduUJ38noVGicQBpQOCaNalgsKLHwWd6omn3OI4 LARMDYJcPq6gikKzcbYGZjGjBNujRrixkMcSan94lmPeuMb5RH9Q9BN47DKnX2jRZ8ZZ GtHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 37si12328559pgs.8.2019.05.12.14.18.42; Sun, 12 May 2019 14:19:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726873AbfELVSZ (ORCPT + 99 others); Sun, 12 May 2019 17:18:25 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:40536 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726664AbfELVSZ (ORCPT ); Sun, 12 May 2019 17:18:25 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 24394280EE4 From: Gabriel Krisman Bertazi To: "Theodore Ts'o" Cc: Ext4 Developers List Subject: Re: [PATCH] unicode: add missing check for an error return from utf8lookup() Organization: Collabora References: <20190512085752.1791-1-tytso@mit.edu> Date: Sun, 12 May 2019 17:18:20 -0400 In-Reply-To: <20190512085752.1791-1-tytso@mit.edu> (Theodore Ts'o's message of "Sun, 12 May 2019 04:57:52 -0400") Message-ID: <85lfzbbcdf.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org "Theodore Ts'o" writes: > Signed-off-by: Theodore Ts'o > Cc: Gabriel Krisman Bertazi Acked-by: Gabriel Krisman Bertazi > --- > fs/unicode/utf8-norm.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/unicode/utf8-norm.c b/fs/unicode/utf8-norm.c > index 20d440c3f2db..801ed6d2ea37 100644 > --- a/fs/unicode/utf8-norm.c > +++ b/fs/unicode/utf8-norm.c > @@ -714,6 +714,8 @@ int utf8byte(struct utf8cursor *u8c) > } > > leaf = utf8lookup(u8c->data, u8c->hangul, u8c->s); > + if (!leaf) > + return -1; > ccc = LEAF_CCC(leaf); > } -- Gabriel Krisman Bertazi