From a5ccfa685a913997e1fa246e1534d1fb4c263d5e Mon Sep 17 00:00:00 2001 From: 3DJ <71472458+ThreeDeeJay@users.noreply.github.com> Date: Fri, 13 Jan 2023 19:14:16 -0500 Subject: [PATCH] Remove file size limit --- src/hdf/btree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hdf/btree.c b/src/hdf/btree.c index 824e115..df02534 100644 --- a/src/hdf/btree.c +++ b/src/hdf/btree.c @@ -266,8 +266,8 @@ int treeRead(struct READER *reader, struct DATAOBJECT *data) { mylog("elements %d size %d\n", elements, size); - if (elements <= 0 || size <= 0 || elements >= 0x100000 || size > 0x10) - return MYSOFA_INVALID_FORMAT; // LCOV_EXCL_LINE + //if (elements <= 0 || size <= 0 || elements >= 0x100000 || size > 0x10) + // return MYSOFA_INVALID_FORMAT; // LCOV_EXCL_LINE if (!(output = malloc(elements * size))) { return MYSOFA_NO_MEMORY; // LCOV_EXCL_LINE }