refs 1038: Fix eof detection in MemIo::getb and avoid crash on truncated jpeg files (Vitaliy Filippov)
This commit is contained in:
parent
a93ad78042
commit
a2edf47056
@ -1347,7 +1347,7 @@ namespace Exiv2 {
|
||||
|
||||
int MemIo::getb()
|
||||
{
|
||||
if (p_->idx_ == p_->size_) {
|
||||
if (p_->idx_ >= p_->size_) {
|
||||
p_->eof_ = true;
|
||||
return EOF;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user