Skip to content

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

Open
@heybdj

Description

@heybdj

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);

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