Loading system/main/shim/utils.cc +5 −0 Original line number Diff line number Diff line Loading @@ -14,8 +14,12 @@ * limitations under the License. */ #define LOG_TAG "shim" #include "utils.h" #include "os/log.h" namespace bluetooth { namespace shim { void parse_gap_data(const std::vector<uint8_t> &raw_data, Loading @@ -26,6 +30,7 @@ void parse_gap_data(const std::vector<uint8_t> &raw_data, uint8_t len = raw_data[offset]; if (offset + len + 1 > raw_data.size()) { LOG_WARN("GAP data out of bound"); break; } Loading Loading
system/main/shim/utils.cc +5 −0 Original line number Diff line number Diff line Loading @@ -14,8 +14,12 @@ * limitations under the License. */ #define LOG_TAG "shim" #include "utils.h" #include "os/log.h" namespace bluetooth { namespace shim { void parse_gap_data(const std::vector<uint8_t> &raw_data, Loading @@ -26,6 +30,7 @@ void parse_gap_data(const std::vector<uint8_t> &raw_data, uint8_t len = raw_data[offset]; if (offset + len + 1 > raw_data.size()) { LOG_WARN("GAP data out of bound"); break; } Loading