summaryrefslogtreecommitdiffstatshomepage
path: root/py/modstruct.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-08-15 23:02:04 +1000
committerDamien George <damien.p.george@gmail.com>2019-08-15 23:02:04 +1000
commitacfbb9febd024475bdcb4ebbe2ec8c0e9a652275 (patch)
tree7ed201887084134ccb40db11f9968b3755f5661e /py/modstruct.c
parentbaeebc557c3132fa17f3c902e260d5049f7c7957 (diff)
downloadmicropython-acfbb9febd024475bdcb4ebbe2ec8c0e9a652275.tar.gz
micropython-acfbb9febd024475bdcb4ebbe2ec8c0e9a652275.zip
py/objarray: Fix amount of free space in array when doing slice assign.
Prior to this patch the amount of free space in an array (including bytearray) was not being maintained correctly for the case of slice assignment which changed the size of the array. Under certain cases (as encoded in the new test) it was possible that the array could grow beyond its allocated memory block and corrupt the heap. Fixes issue #4127.
Diffstat (limited to 'py/modstruct.c')
0 files changed, 0 insertions, 0 deletions