OSDN Git Service

AVRCP: Fix crash when connecting role without a record
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 5 Jun 2013 10:08:29 +0000 (17:08 +0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 11 Jun 2013 12:26:40 +0000 (15:26 +0300)
commit20721796b2f1861b8c982e217b87d24babdb7298
tree08605d38d87fb8a642275754a8215014e4318caf
parent8321ce7e0484b1f691a2d25186a83a80e89b47ce
AVRCP: Fix crash when connecting role without a record

Invalid read of size 4
   at 0x469310: btd_service_connecting_complete (service.c:315)
   by 0x41B29F: session_ct_init_control (avrcp.c:3208)
   by 0x41AD70: state_changed (avrcp.c:3356)
   by 0x417B84: avctp_set_state (avctp.c:550)
   by 0x419E04: avctp_connect_cb (avctp.c:1222)
   by 0x450869: accept_cb (btio.c:202)
   by 0x3F31A47A54: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x3F31A47D87: ??? (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x3F31A48181: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3400.2)
   by 0x40A335: main (main.c:595)
 Address 0x20 is not stack'd, malloc'd or (recently) free'd
profiles/audio/avrcp.c