[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170901014515.GW21656@codeaurora.org>
Date: Thu, 31 Aug 2017 18:45:15 -0700
From: Stephen Boyd <sboyd@...eaurora.org>
To: Colin King <colin.king@...onical.com>
Cc: Tero Kristo <t-kristo@...com>,
Michael Turquette <mturquette@...libre.com>,
linux-omap@...r.kernel.org, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] clk: ti: check for null return in strrchr to avoid
null dereferencing
On 07/27, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> strrchr can potentially return a null so the following strlen on the
> null pointer can cause a null dereference. Add a check to see if
> the string postfix is not null before calling strlen.
>
> Detected by CoverityScan, CID#1452039 ("Dereference null return")
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
> ---
Applied to clk-next
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists