From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp2120.oracle.com ([156.151.31.85]:54270 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725891AbeGaEJM (ORCPT ); Tue, 31 Jul 2018 00:09:12 -0400 To: Bart Van Assche Cc: "Martin K . Petersen" , "James E . J . Bottomley" , linux-scsi@vger.kernel.org, QLogic-Storage-Upstream@cavium.com, stable@vger.kernel.org Subject: Re: [PATCH] qedi: Fix a potential buffer overflow From: "Martin K. Petersen" References: <20180726211037.6257-1-bart.vanassche@wdc.com> Date: Mon, 30 Jul 2018 22:31:06 -0400 In-Reply-To: <20180726211037.6257-1-bart.vanassche@wdc.com> (Bart Van Assche's message of "Thu, 26 Jul 2018 14:10:37 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: stable-owner@vger.kernel.org List-ID: Bart, > Tell snprintf() to store at most 255 characters in the output buffer > instead of 256. This patch avoids that smatch reports the following > warning: Applied to 4.18/scsi-fixes. Thank you! -- Martin K. Petersen Oracle Linux Engineering