From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH] block: sed-opal: Fix a couple off by one bugs To: Dan Carpenter , Scott Bauer Cc: Jonathan Derrick , linux-block@vger.kernel.org, kernel-janitors@vger.kernel.org References: <20180620104151.yhvcgbcbkkwj4cuk@kili.mountain> From: Jens Axboe Message-ID: Date: Wed, 20 Jun 2018 12:04:19 -0600 MIME-Version: 1.0 In-Reply-To: <20180620104151.yhvcgbcbkkwj4cuk@kili.mountain> Content-Type: text/plain; charset=utf-8 List-ID: On 6/20/18 4:41 AM, Dan Carpenter wrote: > resp->num is the number of tokens in resp->tok[]. It gets set in > response_parse(). So if n == resp->num then we're reading beyond the > end of the data. Applied, thanks Dan. -- Jens Axboe