OSDN Git Service

SDP: Validate input UUID's length
authorSrinu Jella <sjella@codeaurora.org>
Thu, 24 Jul 2014 14:24:32 +0000 (19:54 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 7 Jul 2015 05:49:49 +0000 (22:49 -0700)
commit42f37840a891eddfee0943fbdf84c2e4f0d765c5
tree0a6a89869375031d4dae9af475122b5594047aeb
parent97269982095f2da252d667542688d98e5fee128f
SDP: Validate input UUID's length

Use case: Crash observed during BT IOT testing

1. Try to pair to the remote device.
2. Connect  to the remote device's audio profiles.
3. Remote device has given the wrong UUID's length.This will leads to crash.

Failure: crash observed during profile connection

Root cause: Remote sent invalid UUID length,which is causing crash
in comparison logic.

Fix: Validate input UUID's length before going for actual comparison.

Bug: 19417758
Change-Id: I8216d17e3f6cc22dfbeca4b31972b5b5584a73ea
stack/sdp/sdp_utils.c