Skip to content

Commit

Permalink
[jp2image] Limit data representation to 30 bytes
Browse files Browse the repository at this point in the history
- fixes Exiv2#744

(cherry picked from commit 51f3910)
  • Loading branch information
piponazo authored and 1div0 committed May 5, 2019
1 parent ef92d61 commit 99f209d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jp2image.cpp
Expand Up @@ -511,7 +511,7 @@ namespace Exiv2
out << Internal::stringFormat("%8ld | %8ld | sub:", (size_t)address,
(size_t)subBox.length)
<< toAscii(subBox.type) << " | "
<< Internal::binaryToString(makeSlice(data, 0, 30));
<< Internal::binaryToString(makeSlice(data, 0, std::min(30l, data.size_)));
bLF = true;
}

Expand Down

0 comments on commit 99f209d

Please sign in to comment.