]> asedeno.scripts.mit.edu Git - linux.git/commit
nubus: Avoid array underflow and overflow
authorFinn Thain <fthain@telegraphics.com.au>
Sat, 13 Jan 2018 22:37:13 +0000 (17:37 -0500)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 16 Jan 2018 15:47:29 +0000 (16:47 +0100)
commit2f828fb21df42058084b16d5e07cecdc30dbc3a5
treee4dd00df654ccc5b3119ea6b93ef94f326daf1c0
parent955999c9023290da18230b57df1f04187a43a4c0
nubus: Avoid array underflow and overflow

Check array indices. Avoid sprintf. Use buffers of sufficient size.
Use appropriate types for array length parameters.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/nubus/nubus.c
drivers/nubus/proc.c
include/linux/nubus.h