lkml.org 
[lkml]   [2021]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/2] ataflop: potential out of bounds in do_format()
From
Date
On 4/21/21 4:18 AM, Dan Carpenter wrote:
> The function uses "type" as an array index:
>
> q = unit[drive].disk[type]->queue;
>
> Unfortunately the bounds check on "type" isn't done until later in the
> function. Fix this by moving the bounds check to the start.

Applied this and 2/2, thanks Dan.

--
Jens Axboe

\
 
 \ /
  Last update: 2021-04-21 17:18    [W:0.043 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site