gtk4-rs icon indicating copy to clipboard operation
gtk4-rs copied to clipboard

[BUG] ` gtk4::FlowBox.emit_move_cursor` cause crash

Open qarmin opened this issue 3 years ago • 0 comments

System:    Host: rafalkom Kernel: 5.13.0-28-generic x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: GNOME 40.5 
           tk: GTK 3.24.30 wm: gnome-shell dm: GDM3 Distro: Ubuntu 21.10 (Impish Indri) 
RUST_BACKTRACE=full RUSTFLAGS=-Zsanitizer=address RUSTDOCFLAGS=-Zsanitizer=address cargo run  -Zbuild-std --target x86_64-unknown-linux-gnu

Bug description

    let object_385 = FlowBox::new(); // FlowBox
    object_385.emit_move_cursor(MovementStep::DisplayLineEnds,-43800,false,false);
 

cause crash:

**
Gtk:ERROR:../../../gtk/gtkflowbox.c:3371:gtk_flow_box_move_cursor: code should not be reached
Bail out! Gtk:ERROR:../../../gtk/gtkflowbox.c:3371:gtk_flow_box_move_cursor: code should not be reached
Aborted (core dumped)

Issue found by fuzzer - https://github.com/qarmin/gtk-rs-fuzzer

qarmin avatar Feb 11 '22 16:02 qarmin