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

Crash in Tehreer stack on '\n' character #74

Open
heybdj opened this issue Apr 8, 2022 · 0 comments
Open

Crash in Tehreer stack on '\n' character #74

heybdj opened this issue Apr 8, 2022 · 0 comments

Comments

@heybdj
Copy link

heybdj commented Apr 8, 2022

Given the input string "A\nB", the Tehreer stack will crash when creating the second line of the run. The fix is to pass the paragraph starting offset to SBParagraphCreateLine(...) here:

SBLineRef line = SBParagraphCreateLine(paragraph, 0, paraLen);

The fix should look like this:

SBLineRef line = SBParagraphCreateLine(paragraph, paraStart, paraLen);
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

1 participant