Fix bug 74748

This commit is contained in:
Prokhorov Kirill
2025-10-28 11:16:53 +03:00
parent c8b34959d7
commit 4bc78e7bb4

View File

@ -16,7 +16,15 @@
static tsize_t
_tiffReadProcEx(thandle_t fd, tdata_t buf, tsize_t size)
{
return (tsize_t)((CxFile*)fd)->Read(buf, 1, size);
tsize_t nReadCount = (tsize_t)((CxFile*)fd)->Read(buf, 1, size);
if (nReadCount < size)
{
memset(static_cast<char*>(buf) + nReadCount, 0, size - nReadCount);
return size;
}
return nReadCount;
}
static tsize_t