Skip to content

Segfault when packing and ext handler is a dict #2

Open
@bbjubjub2494

Description

@bbjubjub2494

When a packer instance has a dict as its ext handler and it is passed None, it segfaults after printing Exception TypeError: "'NoneType' object has no attribute '__getitem__'" in 'mpack.unparse_enter' ignored.
The problem doesn't appear when the handler is something else, nor with anything but None, nor when unpacking an ext.

Travis proof: https://travis-ci.org/lourkeur/libmpack-python/builds/229769196https://travis-ci.org/lourkeur/libmpack-python/builds/229764123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions