micropython/shared/runtime
Jim Mussared 5015779a6f py/builtinevex: Handle invalid filenames for execfile.
If a non-string buffer was passed to execfile, then it would be passed
as a non-null-terminated char* to mp_lexer_new_from_file.

This changes mp_lexer_new_from_file to take a qstr instead (as in almost
all cases a qstr will be created from this input anyway to set the
`__file__` attribute on the module).

This now makes execfile require a string (not generic buffer) argument,
which is probably a good fix to make anyway.

Fixes issue #12522.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-10-12 15:17:59 +11:00
..
gchelper.h
gchelper_generic.c
gchelper_native.c
gchelper_thumb1.s
gchelper_thumb2.s
interrupt_char.c
interrupt_char.h
mpirq.c
mpirq.h
pyexec.c py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
pyexec.h shared/runtime/pyexec: Don't allow Ctrl+C to interrupt frozen boot code. 2023-04-05 10:38:50 +10:00
semihosting.c
semihosting.h
softtimer.c all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
softtimer.h
stdout_helpers.c
sys_stdio_mphal.c py/stream: Add mp_stream___exit___obj that calls mp_stream_close. 2023-07-21 18:49:03 +10:00