Skip to content
Commit d1ee7e1f authored by Gabriel Ravier's avatar Gabriel Ravier Committed by Bartosz Golaszewski
Browse files

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: default avatarGabriel Ravier <gabravier@gmail.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent 525b0858
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment