]> git.ipfire.org Git - thirdparty/qemu.git/commit
i2c: Add a length check to the SMBus write handling
authorCorey Minyard <cminyard@mvista.com>
Mon, 3 Dec 2018 12:52:50 +0000 (06:52 -0600)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 2 Apr 2019 01:36:21 +0000 (20:36 -0500)
commita69e9049d6abb90e9fe6b6d54829cb51c9fc3cbe
tree077cff09285add666654526f7bbc36e58559b9e9
parent22acdb9937fd87244f0775ec49f50470fd4340c6
i2c: Add a length check to the SMBus write handling

Avoid an overflow.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: QEMU Stable <qemu-stable@nongnu.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 629457a13080052c575779e1fd9f5eb5ee6b8ad9)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/i2c/smbus.c