diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-10-05 16:16:11 +0100 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2021-10-05 10:39:37 -0500 |
commit | 39ce73504695500e043d2851e3d4938fcae89399 (patch) | |
tree | 51a30c9c426a49d46cd5a3ff9d3c35b454d1bc39 /drivers/fpga/machxo2-spi.c | |
parent | 8332cd4936ed93df42add6541f740ce937e7a5bc (diff) |
ipmi: ipmb: Fix off-by-one size check on rcvlen
There is an off-by-one bounds check on the rcvlen causing a potential
out of bounds write on iidev->rcvmsg. Fix this by using the >= operator
on the bounds check rather than the > operator.
Addresses-Coverity: ("Out-of-bounds write")
Fixes: 0ba0c3c5d1c1 ("ipmi:ipmb: Add initial support for IPMI over IPMB")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Message-Id: <20211005151611.305383-1-colin.king@canonical.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions