From: Anthony Minessale Date: Fri, 13 Feb 2015 22:40:09 +0000 (-0600) Subject: FS-7500: assert on neg coordinates causes a seg on free if they are used X-Git-Tag: v1.6.2~614^2~381 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae68efd48e327c432f5fd9d5bbf6c357a6c6473a;p=thirdparty%2Ffreeswitch.git FS-7500: assert on neg coordinates causes a seg on free if they are used --- diff --git a/src/switch_core_video.c b/src/switch_core_video.c index c5c0dd232b..38dc897f6a 100644 --- a/src/switch_core_video.c +++ b/src/switch_core_video.c @@ -87,6 +87,9 @@ SWITCH_DECLARE(void) switch_img_patch(switch_image_t *IMG, switch_image_t *img, { int i, len, max_h; + switch_assert(x > -1); + switch_assert(y > -1); + switch_assert(img->fmt == SWITCH_IMG_FMT_I420); switch_assert(IMG->fmt == SWITCH_IMG_FMT_I420);