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 644906 - gtkimcontextime.c: NULL pointer reference
gtkimcontextime.c: NULL pointer reference
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Input Methods
3.0.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-03-16 10:38 UTC by Kazuki Iwamoto
Modified: 2011-06-06 23:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for modules/input/gtkimcontextime.c (367 bytes, patch)
2011-03-16 10:38 UTC, Kazuki Iwamoto
none Details | Review

Description Kazuki Iwamoto 2011-03-16 10:38:57 UTC
Created attachment 183506 [details] [review]
Patch for modules/input/gtkimcontextime.c

When GTK+ runs with inputim-ime.dll module, there is NULL pointer reference.
Because "context_ime->client_window" may be NULL in gtk_im_context_ime_reset.
So we must check the value.
For example, following code is inserted before GDK_WINDOW_HWND macro.

if (!context_ime->client_window)
  return;