labapart / gattlib

Library to access GATT information from BLE (Bluetooth Low Energy) devices
http://labapart.com/
436 stars 157 forks source link

Add verification for null mac address. #209

Closed kdewald closed 3 years ago

kdewald commented 3 years ago

Sometimes, the callback for gattlib_adapter_scan_enable will receive a NULL mac_address, which can then by fed into gattlib_get_rssi_from_mac by accident, causing a segfault.

oliviermartin commented 3 years ago

Interesting this NULL mac_address. :-/