8000 Calling node->ToString on a node constructed from 2000 consecutive OP_FALSE opcodes causes execution to halt due to running out of stack space · Issue #15 · sipa/miniscript · GitHub
[go: up one dir, main page]

Skip to content

Calling node->ToString on a node constructed from 2000 consecutive OP_FALSE opcodes causes execution to halt due to running out of stack space #15

Open

Description

@practicalswift

Calling node->ToString on a node constructed from 2000 consecutive OP_FALSE opcodes causes execution to halt due to running out of stack space.

The root cause is the unbounded recursion in MakeString.

Activity

  1. sipa commented on Sep 12, 2019

    @sipa
    Owner

    @practicalswift Yeah, I pointed this out here: #5 (comment) actually. We need recursion limits in FromScript as well as FromString.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0