commit | 61bc6dccfeaaf1fbfdddc01bbc754898c7f170da | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Thu Oct 10 09:17:04 2019 -0700 |
committer | Patrick Venture <venture@google.com> | Thu Oct 10 09:18:16 2019 -0700 |
tree | 9c45d3fdc242ded357290ba48f704746f0eed40b | |
parent | fcbf32d0dc6c2cff58dfd5ce581a431425531a59 [diff] [blame] |
bugfix: IpmbSensor: out of bounds check data[4] is out of bounds if data.size() == 4. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Ie14aaed9fe0930baf3e9239632b597ae56cc77a1
diff --git a/src/IpmbSensor.cpp b/src/IpmbSensor.cpp index cb7b705..459599d 100644 --- a/src/IpmbSensor.cpp +++ b/src/IpmbSensor.cpp
@@ -279,7 +279,7 @@ else if (type == IpmbType::PXE1410CVR || type == IpmbType::IR38363VR) { - if (data.size() < 4) + if (data.size() < 5) { if (firstError) {