Commit 6e8241b7 authored by Alexander Alekhin's avatar Alexander Alekhin

imgcodecs: fix RBaseStream hang on truncated inputs

parent f61076a5
......@@ -105,7 +105,6 @@ void RBaseStream::readBlock()
fseek( m_file, m_block_pos, SEEK_SET );
size_t readed = fread( m_start, 1, m_block_size, m_file );
m_end = m_start + readed;
m_current = m_start;
if( readed == 0 || m_current >= m_end )
CV_THROW (RBS_THROW_EOS);
......
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