Skip to content

Commit

Permalink
increase allowed size of HRTFs to 4 Gbytes - issue #224
Browse files Browse the repository at this point in the history
  • Loading branch information
hoene committed Oct 19, 2024
1 parent 2297dd8 commit b96933c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hdf/dataobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ static int readOHDRHeaderMessageDataLayout(struct READER *reader,
struct DATAOBJECT *data) {

int i, err;
unsigned size;
uint64_t size;

uint8_t dimensionality, layout_class;
uint32_t dataset_element_size;
Expand Down Expand Up @@ -546,7 +546,7 @@ static int readOHDRHeaderMessageDataLayout(struct READER *reader,
if (mysofa_seek(reader, data_address, SEEK_SET) < 0)
return errno; // LCOV_EXCL_LINE
if (!data->data) {
if (size > 0x10000000)
if (size > 0x100000000)
return MYSOFA_INVALID_FORMAT; // LCOV_EXCL_LINE
data->data_len = size;
data->data = calloc(1, size);
Expand Down

0 comments on commit b96933c

Please sign in to comment.