[PATCH] getty: Fix potential out-of-range error in parse_speeds()
Peter Korsgaard
peter at korsgaard.com
Fri Aug 23 12:06:24 UTC 2024
>>>>> "Maks" == Maks Mishin <maks.mishinfz at gmail.com> writes:
> Accessing an element of array 'G->speeds' of size 10
> at getty.c:165 can lead to a buffer overflow, since the index
> 'G->numspeed' can have an out of range value 10,
> as indicated by a preceding conditional expression at getty.c:170.
> Found by the static analyzer Svace.
> Signed-off-by: Maks Mishin <maks.mishinFZ at gmail.com>
Reviewed-by: Peter Korsgaard <peter at korsgaard.com>
--
Bye, Peter Korsgaard
More information about the busybox
mailing list