Skip to content

Segmentation fault while trying to render an html file with base64 encoded image data #3888

@Zai-Kun

Description

@Zai-Kun

Problem

Neovim crashes (because of treesitter) when trying to open an HTML file that has a base64 encoded image. I'm sure it is treesitter that is causing this because when I disable the plugin, it doesn't crash. Please see the attached video

recorded_video.mp4

Steps to reproduce

Open up the provided HTML file (or any HTML file with base64 encoded) with neovim with treesitter installed. (renamed it to index.txt as github doesn't allow HTML files)
index.txt

Expected behavior

It shouldn't crash and render the HTML as expected

Tree-sitter version (tree-sitter --version)

0.24.*

Operating system/version

Arch linux 6.10.7-zen1-1-zen kernel

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