Skip to content

Add validation for XDR fields with limits #1

@ire-and-curses

Description

@ire-and-curses

Fields like xdr.SetOptionsOp.HomeDomain have restrictions on size, but at run-time nothing prevents them from being set too large, which causes transaction_malformed errors.

It looks like the XDR library has defined sizes which can be checked (e.g. this one for homeDomain strings). They just need to be checked.

@bartekn Does that sound right to you?

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