Package: gtk+
Version: 1.2.6
Subject: Arithmetic overflow in GtkAllocation structure
If user shrink main window very much, gtk library write (for example) :
"Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate
widget with width 65531 and height 264" and application can't continue
in work.
Test program:
http://www.penguin.cz/~martinmv/gtk/
There can be the arithmetic overflow in members width and height
of GtkAllocation structure. Width and height are guin16.
This patch: declare these variables as gint16 (gtkwidget.h)
tests if these variables >=0 (gtkwidget.c)
Martin Mevald,
[email protected]