mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
memleak / fixes CID118
Originally committed as revision 13473 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c2a3dcaf25
commit
c1815c3700
@ -447,7 +447,7 @@ ImgReSampleContext *img_resample_full_init(int owidth, int oheight,
|
||||
if (!s)
|
||||
return NULL;
|
||||
if((unsigned)owidth >= UINT_MAX / (LINE_BUF_HEIGHT + NB_TAPS))
|
||||
return NULL;
|
||||
goto fail;
|
||||
s->line_buf = av_mallocz(owidth * (LINE_BUF_HEIGHT + NB_TAPS));
|
||||
if (!s->line_buf)
|
||||
goto fail;
|
||||
|
Loading…
x
Reference in New Issue
Block a user