• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

system/bt


Commit MetaInfo

Revision226ea26684d4cd609a5b456d3d2cc762453c2d75 (tree)
Zeit2017-08-09 03:44:57
AutorPavlin Radoslavov <pavlin@goog...>
Commiterandroid-build-team Robot

Log Message

Add missing continuation offset check for SDP continuation requests

Bug: 63146698
Test: External script
Change-Id: Iea52f1689dc12bfe0d4b57996f17db4bc3bd5983
Merged-In: Iea52f1689dc12bfe0d4b57996f17db4bc3bd5983
(cherry picked from commit e776c834768bedd043ace7e5714390b61c96a248)

Ändern Zusammenfassung

Diff

--- a/stack/sdp/sdp_server.cc
+++ b/stack/sdp/sdp_server.cc
@@ -218,7 +218,7 @@ static void process_service_search(tCONN_CB* p_ccb, uint16_t trans_num,
218218 }
219219 BE_STREAM_TO_UINT16(cont_offset, p_req);
220220
221- if (cont_offset != p_ccb->cont_offset) {
221+ if (cont_offset != p_ccb->cont_offset || num_rsp_handles < cont_offset) {
222222 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_CONT_STATE,
223223 SDP_TEXT_BAD_CONT_INX);
224224 return;