linux-stable/tools/gpio
Gabriel Ravier 1d0e482939 tools: gpio-hammer: Avoid potential overflow in main
[ Upstream commit d1ee7e1f5c ]

If '-o' was used more than 64 times in a single invocation of gpio-hammer,
this could lead to an overflow of the 'lines' array. This commit fixes
this by avoiding the overflow and giving a proper diagnostic back to the
user

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:14:39 +02:00
..
.gitignore
Build
Makefile tools: gpio: Fix out-of-tree build regression 2020-04-17 10:48:50 +02:00
gpio-event-mon.c
gpio-hammer.c tools: gpio-hammer: Avoid potential overflow in main 2020-10-01 13:14:39 +02:00
gpio-utils.c
gpio-utils.h
lsgpio.c