summaryrefslogtreecommitdiff
path: root/py/objexcept.c
diff options
context:
space:
mode:
authorLars Haulin <lars.haulin@gmail.com>2022-07-08 17:48:40 +0200
committerDamien George <damien@micropython.org>2022-07-13 16:25:35 +1000
commit5bf3765631e645412dbd62a616cfdadeca5ea0c3 (patch)
treec8da4965e5391990e111162603dbfedc288c6a58 /py/objexcept.c
parent2076f2efccfd86977f63de15958c142365c31f3b (diff)
py/objnamedtuple: Fix segfault with empty namedtuple.
The empty tuple is usually a constant object, but named tuples must be allocated to allow modification. Added explicit allocation to fix this. Also added a regression test to verify creating an empty named tuple works. Fixes issue #7870. Signed-off-by: Lars Haulin <lars.haulin@gmail.com>
Diffstat (limited to 'py/objexcept.c')
0 files changed, 0 insertions, 0 deletions