Skip to content

Commit

Permalink
Fix #491, issue with part number range check reconstructing chunk off…
Browse files Browse the repository at this point in the history
…set table

The chunk offset was incorrectly testing for a part number that was the
same size (i.e. an invalid index)

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Jul 25, 2019
1 parent d5800c1 commit 8b5370c
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 8b5370c

Please sign in to comment.