diff options
author | Lars-Peter Clausen <[email protected]> | 2016-10-18 16:54:03 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2016-10-21 14:41:38 +0200 |
commit | b8b0e3d303654b3bb7b31b0266c513fd6f4132ce (patch) | |
tree | 3033c7c4ba27e0a24c1384809decb1ea97653677 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d82aa4a8f2e8df9673ddb099262355da4c9b99b1 (diff) |
gpio: GPIO_GET_LINEEVENT_IOCTL: Validate line offset
The line offset that is used as an index into the descs array is provided
by userspace and might go beyond the bounds of the array. If that happens
undefined behavior will occur.
Make sure that the offset is within the bounds of the desc array and reject
any requests that specify a value outside of it.
Cc: [email protected]
Fixes: 61f922db7221 ("gpio: userspace ABI for reading GPIO line events")
Signed-off-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions