Skip to content

Commit 29cc981

Browse files
Merge pull request #2028 from kevinbackhouse/FixIssue2027
Use memmove in TiffEncoder::updateDirEntry
2 parents 13a2cf3 + e34eacc commit 29cc981

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/tiffvisitor_int.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ namespace Exiv2 {
745745
#endif
746746
memset(buf + 8, 0x0, 4);
747747
if (pTiffEntry->size() > 0) {
748-
memcpy(buf + 8, pTiffEntry->pData(), pTiffEntry->size());
748+
memmove(buf + 8, pTiffEntry->pData(), pTiffEntry->size());
749749
memset(const_cast<byte*>(pTiffEntry->pData()), 0x0, pTiffEntry->size());
750750
}
751751
}

test/data/issue_2027_poc.jpg

1.51 KB
Loading

0 commit comments

Comments
 (0)