diff options
| author | Lars Haulin <lars.haulin@gmail.com> | 2022-07-08 17:48:40 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-07-13 16:25:35 +1000 |
| commit | 5bf3765631e645412dbd62a616cfdadeca5ea0c3 (patch) | |
| tree | c8da4965e5391990e111162603dbfedc288c6a58 /py/objstrunicode.c | |
| parent | 2076f2efccfd86977f63de15958c142365c31f3b (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/objstrunicode.c')
0 files changed, 0 insertions, 0 deletions
