mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Prevent overflow when storing size hints in an unsigned short variable.
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.
This commit is contained in:
parent
56b4314ae9
commit
51c6eb961e
@ -1,3 +1,9 @@
|
||||
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,
|
||||
@ -310,7 +316,8 @@ Thu Sep 15 15:27:55 2005 Tim Janik <timj@imendio.com>
|
||||
|
||||
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>
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
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,
|
||||
@ -310,7 +316,8 @@ Thu Sep 15 15:27:55 2005 Tim Janik <timj@imendio.com>
|
||||
|
||||
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>
|
||||
|
||||
|
@ -101,13 +101,13 @@ _gtk_socket_windowing_size_request (GtkSocket *socket)
|
||||
{
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user