micropython/ports
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
..
bare-arm
cc3200 all: Switch to new preview build versioning scheme. 2023-10-06 12:10:14 +11:00
embed all: Rename *umodule*.c to remove the "u" prefix. 2023-06-08 17:54:17 +10:00
esp32 ports: Make all ports skip execution of main.py if boot.py fails. 2023-10-12 11:53:29 +11:00
esp8266 py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
mimxrt mimxrt/led: Fix LED init call from main, and simplify led_init. 2023-10-09 17:10:45 +11:00
minimal py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
nrf py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
pic16bit py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
powerpc py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
qemu-arm py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
renesas-ra renesas-ra: Tune lwip buffers and timing to improve network performance. 2023-10-03 10:17:51 +11:00
rp2 ports: Make all ports skip execution of main.py if boot.py fails. 2023-10-12 11:53:29 +11:00
samd {mimxrt,powerpc,samd}/mpconfigport: Don't override parse chunk alloc. 2023-09-29 14:11:26 +10:00
stm32 stm32/i2c: Add support for I2C4 on H7 MCUs. 2023-10-05 10:26:59 +11:00
teensy py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
unix py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
webassembly py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00
windows extmod/moddeflate: Add deflate module providing the DeflateIO class. 2023-07-21 19:32:40 +10:00
zephyr py/builtinevex: Handle invalid filenames for execfile. 2023-10-12 15:17:59 +11:00