kernel-fxtec-pro1x/tools/gpio
Gabriel Ravier 1d0e482939 tools: gpio-hammer: Avoid potential overflow in main
[ Upstream commit d1ee7e1f5c9191afb69ce46cc7752e4257340a31 ]

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 tools: gpio: Correctly add make dependencies for gpio_utils 2019-12-01 09:16:09 +01:00
gpio-event-mon.c tools/gpio/gpio-event-mon: fix warning 2018-03-01 15:26:58 +01:00
gpio-hammer.c tools: gpio-hammer: Avoid potential overflow in main 2020-10-01 13:14:39 +02:00
gpio-utils.c tools: gpio: Print error string on IOCTL failures 2017-10-07 00:03:14 +02:00
gpio-utils.h
lsgpio.c
Makefile tools: gpio: Fix out-of-tree build regression 2020-04-17 10:48:50 +02:00