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)
committerVasyl Gello <vasek.gello@gmail.com>
Wed, 3 Jul 2019 17:12:52 +0000 (17:12 +0000)
commit1955a18c8da716ac45e5b8cf6f9837fe2dc0ab5d
tree5ff4127c8619af28282e5f9d09071cf41780b570
parent7561a388a5b560e8feecc13169b830e0fbb86d5e
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)
(cherry picked from commit 4d8e1d63e1a2116c47702d38d858f5a742e8292f)
stack/sdp/sdp_db.c
stack/sdp/sdp_discovery.c
stack/sdp/sdp_utils.c
stack/sdp/sdpint.h