Skip to content

Segmentation fault in decompiling chained comparison #546

Open
@llcc01

Description

@llcc01

When decompiling .pyc files that contain if-elif-else statements with chained comparisons, a segmentation fault occurs.

Python 3.9.21

Python source code:

def test(msgtype, num):
    if num <= 1:
        msgtype = 1
    elif 2 < num <= 3:
        msgtype = 3
    else:
        msgtype = 4
    return msgtype

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions