Commit 7a930f31 authored by Paul B Mahol's avatar 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: 's avatarPaul B Mahol <onemda@gmail.com>
parent fefd4b09
...@@ -143,8 +143,6 @@ static int check_header_variable(AVCodecContext *avctx, ...@@ -143,8 +143,6 @@ static int check_header_variable(AVCodecContext *avctx,
*variable_buffer_data_size = get_header_variable_length(buf, buf_end); *variable_buffer_data_size = get_header_variable_length(buf, buf_end);
if (!*variable_buffer_data_size) if (!*variable_buffer_data_size)
av_log(avctx, AV_LOG_ERROR, "Incomplete header\n"); av_log(avctx, AV_LOG_ERROR, "Incomplete header\n");
if (*variable_buffer_data_size > buf_end - *buf)
return -1;
return 1; return 1;
} }
*buf -= strlen(value_name)+1; *buf -= strlen(value_name)+1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment