GNOME Bugzilla – Bug 539248
gtk_calender_query_tooltip calls ->detail_func with invalid dates
Last modified: 2008-07-06 06:09:01 UTC
calendar_column_from_x() and calendar_row_from_y() return -1 if the cursor is out-of-bounds. These are used unchecked as array indices and then passed to gtk_calendar_get_detail() which converts the invalid row/column to a garbage month/day upon which the user supplied detail_func tries to operate.
Created attachment 113102 [details] [review] Check for invalid row/col.
2008-07-06 Matthias Clasen <mclasen@redhat.com> Bug 539248 – gtk_calender_query_tooltip calls ->detail_func with invalid dates * gtk/gtkcalendar.c (gtk_calendar_query_tooltip): Check that the cursor is over a valid date before retrieving its details. Patch by Chris Wilson