From b473c8f19800760dbb956dc1a0b789ff07a80ad0 Mon Sep 17 00:00:00 2001 From: bogd Date: Fri, 29 Mar 2024 10:00:19 +0200 Subject: [PATCH] fixed size of file block checking --- src/FileBlockHandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FileBlockHandler.c b/src/FileBlockHandler.c index 42ee590..93b5dc7 100644 --- a/src/FileBlockHandler.c +++ b/src/FileBlockHandler.c @@ -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;