Skip to content

Commit

Permalink
fix off-by-one error in part number validation (Fixes AcademySoftware…
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhillman committed Jul 25, 2019
1 parent d5800c1 commit ddc5ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenEXR/IlmImf/ImfMultiPartInputFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ MultiPartInputFile::Data::chunkOffsetReconstruction(OPENEXR_IMF_INTERNAL_NAMESPA



if(partNumber<0 || partNumber> static_cast<int>(parts.size()))
if(partNumber<0 || partNumber >= static_cast<int>(parts.size()))
{
throw IEX_NAMESPACE::IoExc("part number out of range");
}
Expand Down

0 comments on commit ddc5ae0

Please sign in to comment.