From f6766cd2653338a26333a34982a6c023b4a987fc Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Sun, 25 Jul 2021 19:38:30 -0400 Subject: [PATCH] SAS readers: Allow header sizes up to 16MB Closes #249 --- src/sas/readstat_sas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sas/readstat_sas.c b/src/sas/readstat_sas.c index 9c2b78a..2b3e7cf 100644 --- a/src/sas/readstat_sas.c +++ b/src/sas/readstat_sas.c @@ -254,7 +254,7 @@ readstat_error_t sas_read_header(readstat_io_t *io, sas_header_info_t *hinfo, retval = READSTAT_ERROR_PARSE; goto cleanup; } - if (hinfo->header_size > (1<<20) || hinfo->page_size > (1<<24)) { + if (hinfo->header_size > (1<<24) || hinfo->page_size > (1<<24)) { retval = READSTAT_ERROR_PARSE; goto cleanup; }