diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 21:05:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 21:17:43 +0200 |
commit | c0f0bec2f205e567fc0eef8a9bf59d585e14094c (patch) | |
tree | efa2441cc3538d6b11496991d6f9c09900fae8d8 /libswscale/swscale-test.c | |
parent | 2c85727f6c17eb34166ef0c6c22ee75c2eccba82 (diff) | |
download | ffmpeg-c0f0bec2f205e567fc0eef8a9bf59d585e14094c.tar.gz |
sws-test: check W/H
Fixes CID733834
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale-test.c')
-rw-r--r-- | libswscale/swscale-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c index 085aecb5fd..dde94739f0 100644 --- a/libswscale/swscale-test.c +++ b/libswscale/swscale-test.c @@ -316,7 +316,8 @@ static int fileTest(uint8_t *ref[4], int refStride[4], int w, int h, FILE *fp, srcFormat = av_get_pix_fmt(srcStr); dstFormat = av_get_pix_fmt(dstStr); - if (srcFormat == AV_PIX_FMT_NONE || dstFormat == AV_PIX_FMT_NONE) { + if (srcFormat == AV_PIX_FMT_NONE || dstFormat == AV_PIX_FMT_NONE || + srcW > 1024U || srcH > 1024U || dstW > 1024U || dstH > 1024U) { fprintf(stderr, "malformed input file\n"); return -1; } |