• Peter Wu's avatar
    broadway: fix use-after-free on read errors · fffbe61c
    Peter Wu authored
    Call chain:
     - input_data_cb
       - broadway_server_read_all_input_nonblocking (input)
         - broadway_input_free (input)
           (now input is invalid)
         attempt to use input->active -> use-after-free
    
    Make broadway_server_read_all_input_nonblocking return a boolean, TRUE
    if the input was valid, FALSE otherwise. This allows input_data_cb to
    detect whether the input was gone or not.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741685
    fffbe61c
broadway-server.c 46.6 KB