Skip to content

Commit

Permalink
Add bounds check in Jp2Image::doWriteMetadata().
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Apr 23, 2021
1 parent f0ff11f commit e6a0982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jp2image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ static void boxes_check(size_t b,size_t m)

case kJp2BoxTypeUuid:
{
enforce(boxBuf.size_ >= 24, Exiv2::kerCorruptedMetadata);
if(memcmp(boxBuf.pData_ + 8, kJp2UuidExif, 16) == 0)
{
#ifdef EXIV2_DEBUG_MESSAGES
Expand Down

0 comments on commit e6a0982

Please sign in to comment.