From: Dan Nicolaescu <dann@gnu.org>
To: 9901@debbugs.gnu.org
Subject: bug#9901: xg_win_to_widget uninitialized access
Date: Fri, 28 Oct 2011 21:59:02 -0400 [thread overview]
Message-ID: <yxqvcr8o8wp.fsf@fencepost.gnu.org> (raw)
valgrind gives a warning for an uninitialized access in
xg_win_to_widget for the gtk_get_event_widget call.
if (gdkwin)
{
GdkEvent event;
event.any.window = gdkwin;
gwdesc = gtk_get_event_widget (&event);
}
gtk_get_event_widget is (in gtk3):
GtkWidget*
gtk_get_event_widget (GdkEvent *event)
{
GtkWidget *widget;
gpointer widget_ptr;
widget = NULL;
if (event && event->any.window &&
(event->type == GDK_DESTROY || !gdk_window_is_destroyed
(event->any.window)))
{
gdk_window_get_user_data (event->any.window, &widget_ptr);
widget = widget_ptr;
}
return widget;
}
so indeed event->type is uninitialized.
next reply other threads:[~2011-10-29 1:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-29 1:59 Dan Nicolaescu [this message]
2011-10-30 17:32 ` bug#9901: xg_win_to_widget uninitialized access Jan Djärv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yxqvcr8o8wp.fsf@fencepost.gnu.org \
--to=dann@gnu.org \
--cc=9901@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.