linux-stable/tools/gpio
Gabriel Ravier c59dfd1b2e 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:12:39 +02:00
..
.gitignore gpio: tools: add .gitignore for generated files 2017-01-11 16:18:09 +01:00
Build tools: gpio: Correctly add make dependencies for gpio_utils 2019-12-01 09:13:12 +01:00
gpio-event-mon.c tools/gpio: Fix build error with musl libc 2018-02-03 17:38:47 +01:00
gpio-hammer.c tools: gpio-hammer: Avoid potential overflow in main 2020-10-01 13:12:39 +02:00
gpio-utils.c tools/gpio: add gpio basic opereations 2016-10-24 16:33:11 +02:00
gpio-utils.h tools/gpio: add gpio basic opereations 2016-10-24 16:33:11 +02:00
lsgpio.c tools/gpio: Add missing initialization of device_name 2016-03-31 11:51:30 +02:00
Makefile tools: gpio: Fix out-of-tree build regression 2020-04-24 08:00:41 +02:00