[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.21.1804101102420.8@nippy.intranet>
Date: Tue, 10 Apr 2018 11:10:10 +1000 (AEST)
From: Finn Thain <fthain@...egraphics.com.au>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
cc: Laurent Vivier <lvivier@...hat.com>, Jens Axboe <axboe@...nel.dk>,
linux-m68k <linux-m68k@...ts.linux-m68k.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 06/12] block/swim: Fix array bounds check
On Mon, 9 Apr 2018, Geert Uytterhoeven wrote:
> Looks like amiflop.c:find_floppy() needs a check, too?
>
AFAICS there is no array index bug in floppy_find() in amiflop.c.
The 'unit' array's size is FD_MAX_UNITS which is defined as 4 in
include/linux/amifd.h, and the array index is drive = *part & 3.
--
Powered by blists - more mailing lists