Skip to content
  • Lars Uebernickel's avatar
    gdbus: fix use-after-free · 0751ccd3
    Lars Uebernickel authored and Colin Walters's avatar Colin Walters committed
    g_dbus_connection_call_internal() accesses the user data it passes to
    g_dbus_connection_send_message_with_reply() after the call. That data
    might be freed already in the case that the callback is called
    immediately.
    
    Fix this by removing the 'serial' field from the user data altogether
    and fetch the serial from the message in the callback.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748263
    0751ccd3