Skip to content

Segmentation fault when using cloned unpacker #139

@rybakit

Description

@rybakit

Reproducer:

$unpacker = new \MessagePackUnpacker(true);
$unpacker = clone $unpacker; // <-- this line is causing the segmentation fault error
$unpacker->feed("\xc3");
$unpacker->execute();
$data = $unpacker->data();
PHP 7.3.8 (cli) (built: Jul 30 2019 09:26:16) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.8, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.8, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v2.7.2, Copyright (c) 2002-2019, by Derick Rethans

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions