From 2f06b2cd766a369ee671793e1dde5a13f1cfbe15 Mon Sep 17 00:00:00 2001 From: doylet Date: Thu, 16 Jul 2026 23:33:30 +1000 Subject: [PATCH] Fix DN_INIParseFromPtr crashing with a 0 sized buffer --- Source/Standalone/dn_ini.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Standalone/dn_ini.c b/Source/Standalone/dn_ini.c index 8ad5850..b38343f 100644 --- a/Source/Standalone/dn_ini.c +++ b/Source/Standalone/dn_ini.c @@ -220,6 +220,7 @@ DN_INIToken DN_INI_NextToken(DN_INITokeniser const *tokeniser) tokeniser->prev_token.type == DN_INITokenType_MultilineValue || tokeniser->prev_token.type == DN_INITokenType_Section) { result.type = DN_INITokenType_EndOfStream; + break; } else { result.type = DN_INITokenType_Error; result.error = DN_INIStr8Lit("Premature end of stream encountered malforming the last key-value pair");