OSDN Git Service

DO NOT MERGE 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)
committerhamzeh <hamzeh@google.com>
Fri, 10 May 2019 21:18:06 +0000 (14:18 -0700)
commit03080247f631e57d76e8412d0b7b3726de6078d9
treea7afb4f864bd62f2b0ea2d1632bf031265f55756
parent89674a29d918fa50fcd291e76bdf54144a0d3534
DO NOT MERGE 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 08202bdcbe5e6cf826926d0995790fcfa309bca8)
stack/sdp/sdp_db.c
stack/sdp/sdp_discovery.c
stack/sdp/sdp_utils.c
stack/sdp/sdpint.h