projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2a3dca
)
memleak / fixes CID118
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 27 May 2008 21:12:28 +0000
(21:12 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 27 May 2008 21:12:28 +0000
(21:12 +0000)
Originally committed as revision 13473 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/imgresample.c
patch
|
blob
|
history
diff --git
a/libavcodec/imgresample.c
b/libavcodec/imgresample.c
index d9387f8389e9207ed2c2923ea6211fa64c3a2d78..79f45f940b46f4c323c053011dee869625863d1d 100644
(file)
--- a/
libavcodec/imgresample.c
+++ b/
libavcodec/imgresample.c
@@
-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;