mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
videoscale: Restrict width/height to 2^15 - 1
Otherwise integer overflows will happen, resulting in segmentation faults. Fixes bug #590243.
This commit is contained in:
parent
6b63053be1
commit
cac4b032c3
1 changed files with 3 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue