summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorGabriel Ravier <gabravier@gmail.com>2020-03-12 15:50:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-01 13:17:47 +0200
commit32d9453c208ce13ec585aa91634b05bb0e67f770 (patch)
treed0d0fdba97976296af875605a7abb34dd12e99f5 /init
parent3b63e4b7045b8a2b5a44b05cd25a86ee459b0d0a (diff)
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions