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)
committerTed Wang <tedwang@google.com>
Mon, 6 May 2019 05:56:26 +0000 (13:56 +0800)
commit08202bdcbe5e6cf826926d0995790fcfa309bca8
tree10a0e0acdb729c619904730af88dd71888ac095d
parentc0fb2a25f92848f4d78f72d31e9705e29e6f5ca8
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
stack/sdp/sdp_db.c
stack/sdp/sdp_discovery.c
stack/sdp/sdp_utils.c
stack/sdp/sdpint.h