Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18892C4332D for ; Fri, 20 Mar 2020 15:37:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA9062070A for ; Fri, 20 Mar 2020 15:37:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727312AbgCTPh1 (ORCPT ); Fri, 20 Mar 2020 11:37:27 -0400 Received: from gofer.mess.org ([88.97.38.141]:58353 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbgCTPh1 (ORCPT ); Fri, 20 Mar 2020 11:37:27 -0400 Received: by gofer.mess.org (Postfix, from userid 1000) id 0C5A0C635F; Fri, 20 Mar 2020 15:37:25 +0000 (GMT) Date: Fri, 20 Mar 2020 15:37:25 +0000 From: Sean Young To: Takashi Iwai Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: Re: [PATCH] media: siano: Use scnprintf() for avoiding potential buffer overflow Message-ID: <20200320153725.GA23466@gofer.mess.org> References: <20200311074638.8572-1-tiwai@suse.de> <20200320135015.GB21882@gofer.mess.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200320135015.GB21882@gofer.mess.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Fri, Mar 20, 2020 at 01:50:15PM +0000, Sean Young wrote: > On Thu, Mar 19, 2020 at 04:57:28PM +0100, Takashi Iwai wrote: > > On Wed, 11 Mar 2020 08:46:38 +0100, > > Takashi Iwai wrote: > > > > > > Since snprintf() returns the would-be-output size instead of the > > > actual output size, the succeeding calls may go beyond the given > > > buffer limit. Fix it by replacing with scnprintf(). > > > > > > Signed-off-by: Takashi Iwai > > > > A gentle reminder for this forgotten patch. > > Let me know if any further changes are needed. > > Thank you for your reminder. The changes look good, unfortunately they > missed the deadline for v5.7. I handle them after the next merge window. It turns out trival fixes can be merged, so I was wrong. Now this patch and the other snprintf -> scnprintf patch have been merged for v5.7. Thank you for the reminder. Sean