Skip to content
  • Hugo Lefeuvre's avatar
    gtkstack: fix null pointer dereference · adbaee79
    Hugo Lefeuvre authored and Daniel Boles's avatar Daniel Boles committed
    The gtk_stack_snapshot_slide() function dereferences the
    last_visible_child pointer without proper != NULL ckeck. This might
    result in NULL pointer dereference and crash if last_visible_child is
    invalid.
    
    Add a != NULL check before dereferencing the pointer.
    
    cherry-picked from !361
    adbaee79