[FFmpeg-cvslog] exr: remove superfluous check
Paul B Mahol
git at videolan.org
Fri Feb 22 20:34:59 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Feb 21 19:30:26 2013 +0000| [7a930f310ad2991eb72eb4271ed2f2e7380ea961] | committer: Paul B Mahol
exr: remove superfluous check
get_header_variable_length() already check for
out of array read and returns 0 in such case.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7a930f310ad2991eb72eb4271ed2f2e7380ea961
---
libavcodec/exr.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 22795a9..18037df 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -143,8 +143,6 @@ static int check_header_variable(AVCodecContext *avctx,
*variable_buffer_data_size = get_header_variable_length(buf, buf_end);
if (!*variable_buffer_data_size)
av_log(avctx, AV_LOG_ERROR, "Incomplete header\n");
- if (*variable_buffer_data_size > buf_end - *buf)
- return -1;
return 1;
}
*buf -= strlen(value_name)+1;
More information about the ffmpeg-cvslog
mailing list