Comment 6 for bug 1294545

Revision history for this message
Charles Kerr (charlesk) wrote :

> #0 0xb57208f9 in window_menu_get_entries (wm=0x943b668) at window-menu.c:141
> class = 0x0

> window_menu_get_entries (WindowMenu * wm)
> {
> WindowMenuClass * class = WINDOW_MENU_GET_CLASS(wm);
>
> if (class->get_entries != NULL) {

So at a basic level, we could prevent this crash by adding input-sanitize safeguards (eg, g_return_val_if_fail (IS_WINDOW_MENU(wm))) to WindowMenu's public-facing functions.

I'd like to know where this bad WindowMenu pointer is coming from though...