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 539248 - gtk_calender_query_tooltip calls ->detail_func with invalid dates
gtk_calender_query_tooltip calls ->detail_func with invalid dates
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.13.x
Other Linux
: Normal major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-06-20 09:25 UTC by Chris Wilson
Modified: 2008-07-06 06:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Check for invalid row/col. (1.20 KB, patch)
2008-06-20 09:27 UTC, Chris Wilson
committed Details | Review

Description Chris Wilson 2008-06-20 09:25:47 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.
Comment 1 Chris Wilson 2008-06-20 09:27:51 UTC
Created attachment 113102 [details] [review]
Check for invalid row/col.
Comment 2 Matthias Clasen 2008-07-06 06:09:01 UTC
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