Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stalls and consumes all RAM when given the ligature #4

Open
rspeer opened this issue Jan 20, 2017 · 1 comment
Open

Stalls and consumes all RAM when given the ligature #4

rspeer opened this issue Jan 20, 2017 · 1 comment

Comments

@rspeer
Copy link

rspeer commented Jan 20, 2017

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'].)

@AndrewKvalheim
Copy link

Resolved in 27ceca4?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants