fixed size of file block checking

This commit is contained in:
Bogdan Pilyugin 2024-03-29 10:00:19 +02:00
parent 25feb4f9fb
commit b473c8f198

View File

@ -244,7 +244,7 @@ void FileBlockHandler(char *argres, int rw)
jRead(argres, "{'dat'", &result);
if (result.elements == 1)
{
if (result.bytelen > 0 && result.bytelen <= FileTransaction.size)
if (result.bytelen > 0)
{
unsigned char *dst;
size_t dlen, olen;