Skip to content
Commit e4573fef authored by Marek Vasut's avatar Marek Vasut Committed by Tom Rini
Browse files

i2c: fix stack buffer overflow vulnerability in i2c md command



This reinstates fix from commit 8f8c04bf ("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: default avatarMarek Vasut <marex@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Nicolas Iooss <nicolas.iooss+uboot@ledger.fr>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tim Harvey <tharvey@gateworks.com>
Acked-by: default avatarTim Harvey <tharvey@gateworks.com>
parent 1aa9a04f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment