From 16d1d92395894b98c3aec81326361af934236ab7 Mon Sep 17 00:00:00 2001 From: Chris White Date: Sun, 30 Oct 2022 15:41:01 -0400 Subject: [PATCH] Update property key, value length limits per spec change Increase the minimum key and value lengths to pass the tests added in . --- src/lib/ini.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ini.h b/src/lib/ini.h index 1e60c72..7f31249 100644 --- a/src/lib/ini.h +++ b/src/lib/ini.h @@ -78,8 +78,8 @@ int ini_parse_file(FILE* file, #endif #define MAX_SECTION_NAME 4096 -#define MAX_PROPERTY_NAME 50 -#define MAX_PROPERTY_VALUE 255 +#define MAX_PROPERTY_NAME 1024 +#define MAX_PROPERTY_VALUE 4096 /* Nonzero to allow a UTF-8 BOM sequence (0xEF 0xBB 0xBF) at the start of the file. See http://code.google.com/p/inih/issues/detail?id=21 */