Skip to content

Stalls and consumes all RAM when given the ligature #4

@rspeer

Description

@rspeer

If I run default_case_fold_str on a string containing the ligature , it appears to cause an infinite loop that consumes all RAM.

Here's a test case that encounters the infinite loop:

    #[test]
    fn test_ligature() {
        let s = "the spiffiest test";
        assert_eq!(default_case_fold_str(&s), "the spiffiest test");
    }

(In case font rendering is obscuring the problem, the input word "spiffiest" is made of 7 characters: ['s', 'p', 'i', 'ffi', 'e', 's', 't'].)

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