commit | 714e3888a8438161fdc855d0c7e83e4a79815364 | [log] [tgz] |
---|---|---|
author | Brandon Kim <brandonkim@google.com> | Mon Jun 22 12:36:32 2020 -0700 |
committer | Brandon Kim <brandonkim@google.com> | Wed Jul 08 13:52:50 2020 -0700 |
tree | 965e3ca648ecbe466d217c9a6b522c7f4d04892b | |
parent | 570fcc6d289f0e201d4796fe19fabfed8a4995fe [diff] |
blob_handler: Add check to avoid OOB memory access There's a potential for OOB memory access in statGeneric if sendIpmiPayload returns a small or empty respones. Added a check to guard against it and added unit tests. Change-Id: I224cd3cb391c2f8bbde87aec478bf4042fbdfd47 Signed-off-by: Brandon Kim <brandonkim@google.com>
ipmi-blob-tool is a host-side tool that speaks the BLOB protocol over IPMI.
Test cases require google{test,mock}, valgrind, and lcov.
For a standard release build, you want something like:
./bootstrap.sh ./configure --disable-tests make make install
For a test / debug build, a typical configuration is
./bootstrap.sh ./configure --enable-tests --enable-coverage --enable-valgrind make make check make check-valgrind make check-code-coverage