Parent: 39a53c09a0c62cf221ff90a4228293cdfcd1f847
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-01-27 19:59:28
Tree: 0be3d304ce388c27fe83635e7fd0eb8c24482ff7
emulator: Fix crash if socket(AF_ALG) is not supported by the kernel In this situation, smp_stop() was being called with NULL pointer. Crash detected by valgrind: ==7925== Invalid read of size 4 ==7925== at 0x8052F18: smp_stop (smp.c:480) ==7925== by 0x8052542: bthost_stop (bthost.c:2073) ==7925== by 0x805521D: hciemu_unref (hciemu.c:372) ==7925== by 0x8058C65: test_post_teardown (android-tester.c:464) ==7925== by 0x8055DE7: tester_teardown_complete (tester.c:533) ==7925== by 0x8055501: teardown_callback (tester.c:312) ==7925== by 0x408348F: g_idle_dispatch (gmain.c:5250) ==7925== by 0x4086A75: g_main_context_dispatch (gmain.c:3065) ==7925== by 0x4086E14: g_main_context_iterate.isra.23 (gmain.c:3712) ==7925== by 0x40872FA: g_main_loop_run (gmain.c:3906) ==7925== by 0x41744D2: (below main) (libc-start.c:226) ==7925== Address 0x8 is not stack'd, malloc'd or (recently) free'd
Diffstat
| M | emulator/bthost.c | | | 6 | ++++- - |
1 files changed, 4 insertions(+), 2 deletions(-)