Skip to content

Setting DefaultFactory to nil will cause a segv #133

@tenderlove

Description

@tenderlove

Repro script:

$ ruby -Ilib -rmsgpack -e'MessagePack::DefaultFactory = nil; GC.start; "".to_msgpack' 

This will cause a SEGV because this global will get GC'd and the pointer will become bad.

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