]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7500: assert on neg coordinates causes a seg on free if they are used
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 13 Feb 2015 22:40:09 +0000 (16:40 -0600)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:02 +0000 (12:47 -0500)
src/switch_core_video.c

index c5c0dd232b07c5fd4438c9ae3ef80bc56efa5362..38dc897f6adf8491013cb8dd1fa3617aab68b135 100644 (file)
@@ -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);