pycdc
pycdc copied to clipboard
Segfault on decompilation in FastStack::replace for pycdc
When trying to decompile a pyo file (which I sadly can't upload) I get this segfault (coredump analyzed in gdb with backtrace)
#0 0x00005633ec8a0224 in FastStack::replace (this=0x7ffe9dda7210, copy=...) at /home/thomas/work/pycdc/FastStack.h:55
55 m_size = copy.m_size;
(gdb) bt
#0 0x00005633ec8a0224 in FastStack::replace (this=0x7ffe9dda7210, copy=...) at /home/thomas/work/pycdc/FastStack.h:55
#1 0x00005633ec89932f in FastStack::operator= (this=0x7ffe9dda7210, copy=...) at /home/thomas/work/pycdc/FastStack.h:25
#2 0x00005633ec87e3a5 in BuildFromCode (code=..., mod=0x7ffe9ddabcf0) at /home/thomas/work/pycdc/ASTree.cpp:1221
#3 0x00005633ec895387 in decompyle (code=..., mod=0x7ffe9ddabcf0) at /home/thomas/work/pycdc/ASTree.cpp:2812
#4 0x00005633ec88fb25 in print_src (node=..., mod=0x7ffe9ddabcf0) at /home/thomas/work/pycdc/ASTree.cpp:2462
#5 0x00005633ec892b99 in print_src (node=..., mod=0x7ffe9ddabcf0) at /home/thomas/work/pycdc/ASTree.cpp:2670
#6 0x00005633ec88eae7 in print_src (node=..., mod=0x7ffe9ddabcf0) at /home/thomas/work/pycdc/ASTree.cpp:2396
#7 0x00005633ec8968a6 in decompyle (code=..., mod=0x7ffe9ddabcf0) at /home/thomas/work/pycdc/ASTree.cpp:2884
#8 0x00005633ec86aefd in main (argc=2, argv=0x7ffe9ddabe28) at /home/thomas/work/pycdc/pycdc.cpp:34```