Parent: 329b910babccebb2bc5db5592dd652695aba72fa
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-10-22 23:10:09
Tree: 0ed6588bb1e2799948610f47cb190030485a4175
adapter: Fix storing IRK causing invalid read When storing an IRK the storage file may not have been created yet since that uses the device address which is likely changed to the identity address causing the following trace: Invalid read of size 8 at 0x196452: store_irk.constprop.0 (adapter.c:8679) by 0x198C92: new_irk_callback (adapter.c:8737) by 0x1CF6DC: queue_foreach (queue.c:207) by 0x1D1394: process_notify (mgmt.c:308) by 0x1D1394: can_read_data (mgmt.c:374) by 0x1E0634: watch_callback (io-glib.c:157) by 0x4954A9E: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.6600.8) by 0x49A6A97: ??? (in /usr/lib64/libglib-2.0.so.0.6600.8) by 0x4954162: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.6600.8) by 0x1E0CD4: mainloop_run (mainloop-glib.c:66) by 0x1E10B1: mainloop_run_with_signal (mainloop-notify.c:188) by 0x12E3FC: main (main.c:1210) Address 0x6534418 is 8 bytes inside a block of size 16 free'd
Diffstat
| M | src/adapter.c | | | 6 | ++++- - |
| M | src/device.c | | | 9 | +++++- - - - |
2 files changed, 9 insertions(+), 6 deletions(-)