Skip to content

Bug causing memory corruption #17

@uben0

Description

@uben0

In Helix editor, when writing any file format that support embedded languages like raw blocks in markdown or typst:

    ```typst
    _
    -
    ```

It causes a segfault when the embedded Typst code contains delimited context like _ or * with indentation sensitive items like - or +.

I don't know if it happens in other editors. It seems to be caused by the external scanner when it calls lexer->get_column(), but the segfault does not occur during this call, it occurs outside of the scanner.

Could somebody try this on Helix on his machine to know if this is reproducible or not? And also test with another editor, like Neovim or Emacs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions