Skip to content

Option for restrict map keys #296

@methane

Description

@methane

While msgpack spec doesn't prohibit any map keys, some languages allows only str as map keys.
So it's recommended for cross language compatibility.

For packer, it is useful to detect (unexpected) bin keys.
For unpacker, it is important to prevent "hashdos" attack too.

  • 0.6: Add strict_map_key option to packer and unpacker. False by default.
  • 1.0: Make it true by default.

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