Skip to content

Commit

Permalink
small fix/check
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Mar 10, 2011
1 parent a4294d7 commit 96c32c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DbPng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ static Return __readBlock(DbPngEntryReader& png, const std::string& data) {
return "block entry too small (before reading block height)";
png.blockList.blockHeight = valueFromRaw<uint8_t>(&data[offset]);
offset += sizeof(uint8_t);
if(png.blockList.blockHeight == 0)
return "block height invalid";
}

if(((data.size() - offset) % png.blockList.blockHeight) != 0)
Expand Down

0 comments on commit 96c32c2

Please sign in to comment.