kopia lustrzana https://github.com/micropython/micropython
![]() This fixes the case where e.g. struct foo_t { mp_obj_t x; uint16_t y; char buf[]; }; will have `sizeof(struct foo_t)==8`, but `offsetof(struct foo_t, buf)==6`. When computing the size to allocate for `m_new_obj_var` we need to use offsetof to avoid over-allocating. This is important especially when it might cause it to spill over into another GC block. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com> |
||
---|---|---|
.. | ||
asyncio | ||
axtls-include | ||
btstack | ||
lwip-include | ||
mbedtls | ||
nimble | ||
extmod.cmake | ||
extmod.mk | ||
font_petme128_8x8.h | ||
machine_adc.c | ||
machine_bitstream.c | ||
machine_i2c.c | ||
machine_i2s.c | ||
machine_mem.c | ||
machine_pinbase.c | ||
machine_pulse.c | ||
machine_pwm.c | ||
machine_signal.c | ||
machine_spi.c | ||
machine_timer.c | ||
machine_uart.c | ||
machine_wdt.c | ||
misc.h | ||
modasyncio.c | ||
modbinascii.c | ||
modbluetooth.c | ||
modbluetooth.h | ||
modbtree.c | ||
modcryptolib.c | ||
moddeflate.c | ||
modframebuf.c | ||
modhashlib.c | ||
modheapq.c | ||
modjson.c | ||
modlwip.c | ||
modmachine.h | ||
modnetwork.c | ||
modnetwork.h | ||
modonewire.c | ||
modos.c | ||
modplatform.c | ||
modplatform.h | ||
modrandom.c | ||
modre.c | ||
modselect.c | ||
modsocket.c | ||
modssl_axtls.c | ||
modssl_mbedtls.c | ||
modtime.c | ||
modtime.h | ||
moductypes.c | ||
modwebrepl.c | ||
modwebsocket.c | ||
modwebsocket.h | ||
mpbthci.c | ||
mpbthci.h | ||
network_cyw43.c | ||
network_cyw43.h | ||
network_esp_hosted.c | ||
network_lwip.c | ||
network_ninaw10.c | ||
network_wiznet5k.c | ||
os_dupterm.c | ||
vfs.c | ||
vfs.h | ||
vfs_blockdev.c | ||
vfs_fat.c | ||
vfs_fat.h | ||
vfs_fat_diskio.c | ||
vfs_fat_file.c | ||
vfs_lfs.c | ||
vfs_lfs.h | ||
vfs_lfsx.c | ||
vfs_lfsx_file.c | ||
vfs_posix.c | ||
vfs_posix.h | ||
vfs_posix_file.c | ||
vfs_reader.c | ||
virtpin.c | ||
virtpin.h |