From a27b0b401498d87eb400dd8dbf011a34670f45bc Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Mon, 10 Apr 2023 23:08:51 +0200 Subject: [PATCH] Fix wrong parsing of malformed dict. --- m-dict.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-dict.h b/m-dict.h index 287b1242..ac688e08 100644 --- a/m-dict.h +++ b/m-dict.h @@ -885,7 +885,7 @@ if (M_UNLIKELY (c != '{')) return false; \ c = m_core_fgetc_nospace(file); \ if (M_UNLIKELY(c == '}')) return true; \ - if (M_UNLIKELY (c == EOF)) return true; \ + if (M_UNLIKELY (c == EOF)) return false; \ ungetc(c, file); \ key_type key; \ M_IF(isSet)( ,value_type value); \