Merge pull request #2028 from kevinbackhouse/FixIssue2027

Use memmove in TiffEncoder::updateDirEntry
main
Kevin Backhouse 4 years ago committed by GitHub
commit 29cc981180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -745,7 +745,7 @@ namespace Exiv2 {
#endif
memset(buf + 8, 0x0, 4);
if (pTiffEntry->size() > 0) {
memcpy(buf + 8, pTiffEntry->pData(), pTiffEntry->size());
memmove(buf + 8, pTiffEntry->pData(), pTiffEntry->size());
memset(const_cast<byte*>(pTiffEntry->pData()), 0x0, pTiffEntry->size());
}
}

Binary file not shown.
Loading…
Cancel
Save