summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2022-08-26 23:15:56 +0200
committerTom Rini <[email protected]>2022-08-31 12:21:47 -0400
commite4573fef7701afc2df22924ce0a445b923475afc (patch)
tree20d34ecf4bfa236f68695afac4fff5dc57384b67 /include
parent1aa9a04ff687b8d55b0fb68ae2a688c8705665cc (diff)
i2c: fix stack buffer overflow vulnerability in i2c md command
This reinstates fix from commit 8f8c04bf1ebb ("i2c: fix stack buffer overflow vulnerability in i2c md command") without the changes unrelated to the actual fix. Avoid the underflow by setting only nbytes and linebytes as unsigned integers. Signed-off-by: Marek Vasut <[email protected]> Cc: Heiko Schocher <[email protected]> Cc: Nicolas Iooss <[email protected]> Cc: Simon Glass <[email protected]> Cc: Tim Harvey <[email protected]> Acked-by: Tim Harvey <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions