OSDN Git Service

Fix potential OOB read in sdpu_get_len_from_type
authorTed Wang <tedwang@google.com>
Mon, 29 Apr 2019 02:11:04 +0000 (10:11 +0800)
committerTed Wang <tedwang@google.com>
Fri, 3 May 2019 06:13:18 +0000 (06:13 +0000)
commit4d8e1d63e1a2116c47702d38d858f5a742e8292f
tree06939aa58943e5402467b00c104bfa2315ecd398
parent292fcf8612f488a2fcbf99614caba46ead076eb2
Fix potential OOB read in sdpu_get_len_from_type

Add boundary check in sdpu_get_len_from_type to prevent potential OOB read.

Bug: 117105007
Test: Manul
Merged-In: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a
Change-Id: I3755e13ee0a7e22ffd5f48fca909610a26b09d0a
(cherry picked from commit 1243f8da338dadfe2a3c281a08297b431402d41c)
stack/sdp/sdp_db.cc
stack/sdp/sdp_discovery.cc
stack/sdp/sdp_utils.cc
stack/sdp/sdpint.h