brson · GitHub

This repository was archived by the owner on Mar 20, 2024. It is now read-only.

This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Open

Open

Labels

Description

@brson

Followup to #333

The move VM produces errors in some cases when asked to recurse deeply. move-native has no limits and will just crash if it hits the end of the stack.

The only case of this I have seen is in this test case in stdlib's bcs_tests:

    #[test]
    #[expected_failure] // VM_MAX_VALUE_DEPTH_REACHED
    fun encode_129() {
        bcs::to_bytes(&Box { x: box127(true) });
    }

But there are probably others.

Metadata

Metadata

Assignees

No one assigned

Labels

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Read the original on github.com ↗