Browse Source

py/lexer: Add missing initialisation for fstring_args_idx.

This was missed in 692d36d779. 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 <jim.mussared@gmail.com>
pull/12535/head
Jim Mussared 1 year ago
committed by Damien George
parent
commit
276bfa3146
  1. 1
      py/lexer.c

1
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

Loading…
Cancel
Save