summaryrefslogtreecommitdiff
path: root/plugingui/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/widget.cc')
-rw-r--r--plugingui/widget.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugingui/widget.cc b/plugingui/widget.cc
index 4a99524..c148219 100644
--- a/plugingui/widget.cc
+++ b/plugingui/widget.cc
@@ -122,6 +122,7 @@ void Widget::reparent(Widget* parent)
void Widget::resize(std::size_t width, std::size_t height)
{
+ assert(width < 32000 && height < 32000); // Catch negative values as size_t
if((width < 1) || (height < 1) ||
((width == _width) && (height == _height)))
{