summaryrefslogtreecommitdiff
path: root/tests/basics/array_micropython.py
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2025-11-04 20:18:16 +0100
committerDamien George <damien@micropython.org>2025-11-27 14:18:04 +1100
commit65f994e26a852eecc2b641db4d35b5e1676d4442 (patch)
tree187c7b19246db1a13c16f1699a3747cf7bb0b0fe /tests/basics/array_micropython.py
parent3d9a3e89cf4a32fdc6fca2a8edd91714b5b67665 (diff)
py/compile: Allow NULL emitter table entries.
This commit fixes a regression introduced in 1b92bda5b8e5e2db8e57c4b7134930e52bc5207a, where a new architecture was added to mpy-cross but it had no matching native emitter exists. The result was that the architecture emitter entry point would be correctly calculated according to the native architecture index, but if the emitters entry points table was not updated to match the new number of architectures an out of bound access may be performed. Unfortunately adding RV64IMC shifted the debug emitter index further down the table, and that table wasn't updated to reflect the lack of an emitter for RV64. Adding a NULL entry there would cause a NULL pointer access as there was no need to perform any check about the emitter entry point function's validity until now. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'tests/basics/array_micropython.py')
0 files changed, 0 insertions, 0 deletions