Skip to content

Ensure no underflow when handling epoch 0 #47

@ensi321

Description

@ensi321

self.epoch is Uint8 and underlying type is u8. Subtract 1 will underflow.

Probably need to check other places too because our typescript ssz doesn't check for underflow and typescript doesn't have concept of unsigned int

Originally posted by @ensi321 in #17 (comment)

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