From 276bfa3146534f5b6a0130309f3b166fb2a77e25 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Thu, 28 Sep 2023 12:26:51 +1000 Subject: [PATCH] py/lexer: Add missing initialisation for fstring_args_idx. This was missed in 692d36d779192f32371f7f9daa845b566f26968d. Probably never noticed because everything enables `MICROPY_GC_CONSERVATIVE_CLEAR`, but found via ASAN thanks to @gwangmu & @chibinz. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared --- py/lexer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/py/lexer.c b/py/lexer.c index b22cc2eaea..6b28f22152 100644 --- a/py/lexer.c +++ b/py/lexer.c @@ -846,6 +846,7 @@ mp_lexer_t *mp_lexer_new(qstr src_name, mp_reader_t reader) { vstr_init(&lex->vstr, 32); #if MICROPY_PY_FSTRINGS vstr_init(&lex->fstring_args, 0); + lex->fstring_args_idx = 0; #endif // store sentinel for first indentation level