Skip to content

VarInt can encode sizes that are greater than max allowed by Core #2907

Description

@tcharding

In Core there is a max const for things that can be encoded and have their encode size represented by a compact integer (ie., VarInt). We are not, as far as I can see, enforcing this limit.

    if (range_check && nSizeRet > MAX_SIZE) {
        throw std::ios_base::failure("ReadCompactSize(): size too large");
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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