• Slava Monich's avatar
    [wifi] Clear wifi_bss -> wifi_network pointers on delete. JB#47990 · 15a3407d
    Slava Monich authored
    When WiFi is being turned off, wifi_network is getting deallocated before
    wifi_bss, causing crashes like this one:
       Invalid read of size 4
          at 0x3496E: wifi_network_update_strength (sailfish_wifi.c:1626)
          by 0x36A8D: wifi_device_bss_signal_changed (sailfish_wifi.c:2908)
          by 0x4CB06E7: _g_closure_invoke_va (gclosure.c)
          by 0x4CC3EF7: g_signal_emit_valist (gsignal.c)
          by 0x4CC42EB: g_signal_emit (gsignal.c)
          by 0x4B591F1: gsupplicant_bss_signal_property_change (gsupplicant_bss.c)
       Address 0x68b0038 is 8 bytes inside a block of size 100 free'd
          at 0x48432B0: free (vg_replace_malloc.c)
          by 0x34D75: wifi_network_delete (sailfish_wifi.c:1763)
          by 0x35321: wifi_device_delete_network (sailfish_wifi.c:2009)
          by 0x3538D: wifi_device_remove_all_networks_cb (sailfish_wifi.c:2036)
          by 0x4D434B3: g_slist_foreach (gslist.c)
          by 0x353BB: wifi_device_remove_all_networks (sailfish_wifi.c:2042)
          by 0x3895B: wifi_device_set_state (sailfish_wifi.c:3952)
          by 0x387D3: wifi_device_disable (sailfish_wifi.c:3883)
          by 0x39263: wifi_device_driver_disable (sailfish_wifi.c:4307)
          by 0x512AF: __connman_device_disable (device.c:265)
          by 0x8B3AB: technology_affect_devices (technology.c:742)
          by 0x8B835: technology_disable (technology.c:901)
          by 0x8BABF: set_powered (technology.c:1017)
          by 0x8BFA7: set_property (technology.c:1165)
Last commit
Last update
connman Loading commit data...
rpm Loading commit data...
upstream @ 57a31db5 Loading commit data...
.gitmodules Loading commit data...