Parent: a85ffb4ae449567d74b48fd701c60d583f4eadd6
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-09-23 11:51:57
Tree: 89765aacdb972672c8abe544615ffdc9acb5d372
android/hal-bluetooth: Fix wrong length in configuration command HAL was sending extra byte at the end of command. Refactor code to use pointer + offset and avoid less intuitive pointers subtraction. Syscall param sendmsg(msg.msg_iov[1]) points to uninitialised byte(s) at 0x53529BD: ??? (syscall-template.S:81) by 0x6D96197: hal_ipc_cmd (hal-ipc.c:369) by 0x6D8D41E: send_configuration (hal-bluetooth.c:453) by 0x6D8EC16: init (hal-bluetooth.c:489) by 0x412B20: setup (tester-main.c:1411) by 0x40CE05: setup_callback (tester.c:394) by 0x5083CE4: g_main_context_dispatch (in /lib/x86_64-linux-gnu/ libglib-2.0.so.0.4000.0) by 0x5084047: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0) by 0x5084309: g_main_loop_run (in /lib/x86_64-linux-gnu/ libglib-2.0.so.0.4000.0) by 0x40DB4C: tester_run (tester.c:815) by 0x40259E: main (tester-main.c:2335) Address 0xffefffe31 is on thread 1's stack
Diffstat
| M | android/hal-bluetooth.c | | | 20 | ++++++- - - - - - - - - - - - - - |
1 files changed, 6 insertions(+), 14 deletions(-)