+2005-09-30 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtksocket-x11.c (_gtk_socket_windowing_size_request):
+ Prevent overflow when storing size hints in an unsigned
+ short variable. Tracked down by Ray Strode and Søren Sandmann.
+
2005-09-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbutton.c (gtk_button_set_image): Check arguments. (#317491,
2005-09-14 Tristan Van Berkom <tvb@cvs.gnome.org>
- * gtk/gtkcolorbutton.c: Check "color" argument in gtk_color_button_set_color ()
+ * gtk/gtkcolorbutton.c: Check "color" argument in
+ gtk_color_button_set_color ()
2005-09-14 Matthias Clasen <mclasen@redhat.com>
+2005-09-30 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtksocket-x11.c (_gtk_socket_windowing_size_request):
+ Prevent overflow when storing size hints in an unsigned
+ short variable. Tracked down by Ray Strode and Søren Sandmann.
+
2005-09-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbutton.c (gtk_button_set_image): Check arguments. (#317491,
2005-09-14 Tristan Van Berkom <tvb@cvs.gnome.org>
- * gtk/gtkcolorbutton.c: Check "color" argument in gtk_color_button_set_color ()
+ * gtk/gtkcolorbutton.c: Check "color" argument in
+ gtk_color_button_set_color ()
2005-09-14 Matthias Clasen <mclasen@redhat.com>
{
if (hints.flags & PMinSize)
{
- socket->request_width = hints.min_width;
- socket->request_height = hints.min_height;
+ socket->request_width = MAX (hints.min_width, 1);
+ socket->request_height = MAX (hints.min_height, 1);
}
else if (hints.flags & PBaseSize)
{
- socket->request_width = hints.base_width;
- socket->request_height = hints.base_height;
+ socket->request_width = MAX (hints.base_width, 1);
+ socket->request_height = MAX (hints.base_height, 1);
}
}
socket->have_size = TRUE;