mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
imgcodecs: fix RBaseStream hang on truncated inputs
This commit is contained in:
parent
f61076a5d8
commit
6e8241b78d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user