Skip to content

Unable to deserialize_str strings which are larger than 4096. #32

Open
@kvinwang

Description

@kvinwang

We are trying to use ciborium to ser/de some complicated data. Part of the data invokes the Deserializer::deserialize_str and fails with an error: invalid type: string, expected str. This is because that ciborium limit the deserialze_str size to a hard coded 4096.

See:

let mut scratch = [0; 4096];

Header::Text(Some(len)) if len <= self.scratch.len() => {

Would it better to export a configurable limitation or alloc the internal buffer adaptively?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions