Commit: c89bc105a087cdb3fae4993c416bedd9ad7c9bac
Parent: e770585f46f3f9f3fab25104c7dff0ca3617df9e
Author: Jakub Tyszkowski <jakub.tyszkowski@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-05-18 14:58:33
Tree: 3a7effdcfdef2389a67d7138c662f53afd09b45c

android/hal: Fix sending not initialised data As we always send whole gatt_response_t struct through IPC, but copy only cmd->len bytes, the rest should be initilised to 0. This fixes the following issue: ==30585== Syscall param socketcall.sendmsg(msg.msg_iov[i]) points to uninitialised byte(s) ==30585== at 0x534133D: ??? (syscall-template.S:82) ==30585== by 0x7756336: hal_ipc_cmd (hal-ipc.c:359) ==30585== by 0x77546DF: send_response.part.0 (hal-gatt.c:1247) ==30585== by 0x408119: gatts_send_response_p (if-gatt.c:1777) ==30585== by 0x40219F: process_line (haltest.c:293) ==30585== by 0x402552: terminal_action_enter (terminal.c:666) ==30585== by 0x403184: terminal_process_char (terminal.c:781) ==30585== by 0x401B90: stdin_handler (haltest.c:308) ==30585== by 0x402261: poll_dispatch_loop (pollhandler.c:60) ==30585== by 0x401870: main (haltest.c:441) ==30585== Address 0x7fefff2a3 is on thread 1's stack

Diffstat

M android/hal-gatt.c | 2 ++

1 files changed, 2 insertions(+), 0 deletions(-)

View Full Diff | Patch