micropython/ports/unix
Arrowana 922f81dfd1 extmod/machine_mem: Only allow integers in machine.memX subscript.
Prior to this change machine.mem32['foo'] (or using any other non-integer
subscript) could result in a fault due to 'foo' being interpreted as an
integer.  And when writing code it's hard to tell if the fault is due to a
bad subscript type, or an integer subscript that specifies an invalid
memory address.

The type of the object used in the subscript is now tested to be an
integer by using mp_obj_get_int_truncated instead of
mp_obj_int_get_truncated.  The performance hit of this change is minimal,
and machine.memX objects are more for convenience than performance (there
are many other ways to read/write memory in a faster way),

Fixes issue #6588.
2020-11-13 11:13:37 +11:00
..
variants unix/Makefile: Move coverage.c and coveragecpp.cpp to coverage variant. 2020-10-29 23:30:04 +11:00
.gitignore
Makefile unix/Makefile: Move coverage.c and coveragecpp.cpp to coverage variant. 2020-10-29 23:30:04 +11:00
alloc.c
coverage.c
coveragecpp.cpp esp32,unix: Support building C++ code. 2020-10-29 15:29:50 +11:00
fatfs_port.c unix/fatfs_port: Fix month offset in timestamp calculation. 2020-09-02 00:19:06 +10:00
gccollect.c
input.c
input.h
main.c esp32,unix: Support building C++ code. 2020-10-29 15:29:50 +11:00
modffi.c
modjni.c
modmachine.c extmod/machine_mem: Only allow integers in machine.memX subscript. 2020-11-13 11:13:37 +11:00
modos.c
modtermios.c
modtime.c extmod/utime_mphal: Add generic utime.time_ns() function. 2020-10-01 14:20:42 +10:00
moduos_vfs.c
moduselect.c
modusocket.c
mpbthciport.c extmod/nimble: Add timeout for HCI sync on startup. 2020-09-08 12:53:24 +10:00
mpbtstackport.h unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpbtstackport_common.c extmod/modbluetooth: Implement configuration of address modes. 2020-09-08 12:53:24 +10:00
mpbtstackport_h4.c unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpbtstackport_usb.c extmod/modbluetooth: Refactor stack/hci/driver/port bindings. 2020-09-08 11:41:31 +10:00
mpconfigport.h unix/mpconfigport.h: Enable MICROPY_PY_DELATTR_SETATTR. 2020-10-20 23:47:50 +11:00
mpconfigport.mk
mphalport.h
mpnimbleport.c unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpnimbleport.h unix: Implement BLE H4 HCI UART for btstack/nimble. 2020-09-08 12:53:24 +10:00
mpthreadport.c
mpthreadport.h
qstrdefsport.h
unix_mphal.c unix,windows: Implement mp_hal_time_ns using gettimeofday. 2020-10-01 14:20:42 +10:00