Skip to content

Panic in FluentResource::try_new #389

@timtom-dev

Description

@timtom-dev

While fuzzing my own application, I found that the following line will panic:

let _ = FluentResource::try_new(r#"a={"\ǔ"#.to_string());

with the message:

byte index 7 is not a char boundary; it is inside '\u{30c}' (bytes 6..8) of `a={"\ǔ `

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