Loading system/service/gatt_server.cc +7 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include <base/logging.h> #include "osi/include/log.h" #include "service/logging_helpers.h" #include "stack/include/bt_types.h" Loading Loading @@ -116,6 +117,12 @@ bool GattServer::SendResponse(const std::string& device_address, int request_id, return false; } if (offset < 0) { android_errorWriteLog(0x534e4554, "143231677"); LOG(ERROR) << "Offset is less than 0 offset: " << offset; return false; } if (value.size() + offset > BTGATT_MAX_ATTR_LEN) { LOG(ERROR) << "Value is too large"; return false; Loading Loading
system/service/gatt_server.cc +7 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include <base/logging.h> #include "osi/include/log.h" #include "service/logging_helpers.h" #include "stack/include/bt_types.h" Loading Loading @@ -116,6 +117,12 @@ bool GattServer::SendResponse(const std::string& device_address, int request_id, return false; } if (offset < 0) { android_errorWriteLog(0x534e4554, "143231677"); LOG(ERROR) << "Offset is less than 0 offset: " << offset; return false; } if (value.size() + offset > BTGATT_MAX_ATTR_LEN) { LOG(ERROR) << "Value is too large"; return false; Loading