Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2235353yba; Fri, 17 May 2019 13:03:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxG6OojwxoppmMSeIJK18rHDwCg0RR7209HRv9oSUomadgD9LD68p4p7vtvoTWpaIOUibW7 X-Received: by 2002:a62:ea04:: with SMTP id t4mr61839798pfh.47.1558123406888; Fri, 17 May 2019 13:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558123406; cv=none; d=google.com; s=arc-20160816; b=priV1Z5ubL+uHqfwrmoSBsWxPmxWLgpTrtXoPRsEuGSfbUZSJzM7bUIBiYsk72ryJY JInkLLe+0mqhdd7LrAZtcXHBY3vaF3vq08mgyCzkc8RccowGtx9a3+ni3i4i9xGf7SR2 nb+dkqha+qS1eofhTZ4MScbredDJVs7gmDXtGOvWwTvRGm/VpLXUM3kSzk13LyVolFmE 9jJpNE2d2htpmNTUAqQ4GhNePuBBWmh2kCdXk/DyI4u3WPo/BbvZqywLAdUuG88l07bQ 5xhaz3JyX7KP4ybplvJoX6K8lebYp/lrtVuvLtrL11MFi9zK6IhhUTHNHzo8MGXKQeA8 4KxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=F2LkA1dLq/aKHYsKFTRvBAopcv0OdXvwPT/JpB1sZCI=; b=uDKMz/UKCJkr/vm/dpq/JAPjlqAYafsnFkzn3Q7GDlTTnMhx2oAYrfunc5J8kTkDfV yxrRinx5++RCS/EVv0+ZVPhynY+4ZSaTbfXwS6FcbibJ7jAyTn942ldcjFa4o7YnwxAu D4UYXcfJP9GqKls55EALUy0EBFblg3hJcW+LvP4duEX2dicZw+UkyATdEeqwLZm5jlph BLCoj05DSGYDutfKLLen68PHqAILhiJnrJRW1G9Y5WJvLhrl9bY/FjmNFderTQDXLAzq EtSZ6obgJppfTxavyh3JinveveLA1bm1CXxPyOcuQa8v5ny1KIanMocl5MlAJbsvklew Tu4Q== 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 c3si8923233pgd.148.2019.05.17.13.03.09; Fri, 17 May 2019 13:03:26 -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 S1727181AbfEQSjh (ORCPT + 99 others); Fri, 17 May 2019 14:39:37 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:46288 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfEQSjg (ORCPT ); Fri, 17 May 2019 14:39:36 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::3d8]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 434B613F18502; Fri, 17 May 2019 11:39:36 -0700 (PDT) Date: Fri, 17 May 2019 11:39:24 -0700 (PDT) Message-Id: <20190517.113924.1441508070379690525.davem@davemloft.net> To: swkhack@gmail.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: caif: fix the value of size argument of snprintf From: David Miller In-Reply-To: <20190517075922.29123-1-swkhack@gmail.com> References: <20190517075922.29123-1-swkhack@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 17 May 2019 11:39:36 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Weikang shi Date: Fri, 17 May 2019 15:59:22 +0800 > From: swkhack > > Because the function snprintf write at most size bytes(including the > null byte).So the value of the argument size need not to minus one. > > Signed-off-by: swkhack Applied.