Skip to content

Commit e34eacc

Browse files
Use memmove, rather than memcpy, because memory regions might overlap.
1 parent 4aa701f commit e34eacc

File tree

1 file changed

+1
-1
lines changed

1 file 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
}

0 commit comments

Comments
 (0)