diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-02-21 19:30:26 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-02-22 18:59:55 +0000 |
commit | 7a930f310ad2991eb72eb4271ed2f2e7380ea961 (patch) | |
tree | c3722463072df38f023e2b9eb62c9b794e49a9f1 /libavcodec/exr.c | |
parent | fefd4b0924cc8395f2ddeaff750d6e73584b7b80 (diff) | |
download | ffmpeg-7a930f310ad2991eb72eb4271ed2f2e7380ea961.tar.gz |
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@gmail.com>
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r-- | libavcodec/exr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 22795a9b5e..18037df5ba 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; |