From cac4b032c38cde81113690ddcb3ebb5111a9ac6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 30 Jul 2009 12:37:07 +0200 Subject: [PATCH] videoscale: Restrict width/height to 2^15 - 1 Otherwise integer overflows will happen, resulting in segmentation faults. Fixes bug #590243. --- gst/videoscale/gstvideoscale.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 9f232f4898..cceb6a347b 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -81,6 +81,9 @@ enum /* FILL ME */ }; +#undef GST_VIDEO_SIZE_RANGE +#define GST_VIDEO_SIZE_RANGE "(int) [ 1, 32767]" + static GstStaticCaps gst_video_scale_format_caps[] = { GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx), GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB),