Skip to content

Reading should fail if integer values are out of range #682

Description

@autoantwort

If I have the following code:

struct Settings {
  uint16_t port;
};

and parse

{
  "port": 100200
}

I get no error and port is 34664.
The input should be rejected with an error message like "port: value 100200 is larger then maximum value 65535".

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