After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 646156 - gtk_entry_completion_complete crashes if no entry
gtk_entry_completion_complete crashes if no entry
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkEntry
3.0.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-03-29 19:13 UTC by Michael Terry
Modified: 2018-02-10 04:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case (414 bytes, text/x-csrc)
2011-03-29 19:13 UTC, Michael Terry
Details

Description Michael Terry 2011-03-29 19:13:54 UTC
Created attachment 184623 [details]
Test case

If gtk_entry_completion_complete is called with no attached entry, the program crashes because it will eventually pass a NULL string to g_utf8_normalize.

Affects gtk2 and gtk3.

A test program is attached.  Compile like so:

gcc `pkg-config --libs --cflags gtk+-2.0` -o noentry2 noentry.c
gcc `pkg-config --libs --cflags gtk+-3.0` -o noentry3 noentry.c
Comment 1 Matthias Clasen 2018-02-10 04:35:51 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.