Re: [PATCH] dio: Fix buffer overflow in case of unknown board

From: Andreas Schwab
Date: Tue Jan 08 2019 - 09:19:59 EST


On Jan 08 2019, Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:

> @@ -90,7 +90,7 @@ static struct dioname names[] =
> #undef DIOFBNAME
>
> static const char *unknowndioname
> - = "unknown DIO board -- please email <linux-m68k@xxxxxxxxxxxxxxxxxxxx>!";
> + = "unknown DIO board, please email linux-m68k@xxxxxxxxxxxxxxxxxxxx";

This could be declared as an array.

Andreas.

--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."