linux/tools/gpio
Gabriel Ravier d1ee7e1f5c tools: gpio-hammer: Avoid potential overflow in main
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>
2020-03-25 09:50:45 +01:00
..
.gitignore tools: gpio: implement gpio-watch 2020-02-12 12:05:47 +01:00
Build tools: gpio: implement gpio-watch 2020-02-12 12:05:47 +01:00
gpio-event-mon.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
gpio-hammer.c tools: gpio-hammer: Avoid potential overflow in main 2020-03-25 09:50:45 +01:00
gpio-utils.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
gpio-utils.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
gpio-watch.c tools: gpio: implement gpio-watch 2020-02-12 12:05:47 +01:00
lsgpio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Makefile tools: gpio: implement gpio-watch 2020-02-12 12:05:47 +01:00