Commit: e75426d2f14de73796ebfc83ba14a49edd8736df
Parent: 743e508b42c471bb4ec6f0071d53f04da5f20276
Author: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-01-13 18:11:38
Tree: 455c2baab089798e2aa01fedf77ba9f02ce04ace

shared/gatt-db: Fix crash on find by type search Make sure all fields in search data are set. Without this patch we got: ==29603== Conditional jump or move depends on uninitialised value(s) ==29603== at 0x409689: find_by_type (gatt-db.c:866) ==29603== by 0x40C1A7: queue_foreach (queue.c:251) ==29603== by 0x40A341: gatt_db_find_by_type (gatt-db.c:889) ==29603== by 0x408E8C: init_complete (gatt-client.c:1225) ==29603== by 0x4073B5: discover_descs_cb (gatt-client.c:690) ==29603== by 0x40CB1C: discover_descs_cb (gatt-helpers.c:1453) ==29603== by 0x405445: can_read_data (att.c:600) ==29603== by 0x40B097: io_callback (io-mainloop.c:123) ==29603== by 0x40BA3B: mainloop_run (mainloop.c:142) ==29603== by 0x401FD7: main (btgatt-client.c:1269)

Diffstat

M src/shared/gatt-db.c | 2 ++

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

View Full Diff | Patch