Skip to content

Commit

Permalink
Remove file size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ThreeDeeJay authored Jan 14, 2023
1 parent 3acee85 commit a5ccfa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hdf/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a5ccfa6

Please sign in to comment.