Skip to content

Conversation

@eed3si9n
Copy link
Collaborator

Fixes #159
Ref nvim-treesitter/nvim-treesitter#4170

Problem

The buffer given for payload serialization is 1024, but we are currently using (1024 + 3) * sizeof(int)

Solution

Reduce it way down.

Problem
-------
The buffer given for payload serialization is 1024,
but we are currently using (1024 + 3) * sizeof(int)

Solution
--------
Reduce it way down, and fix a few things around unsigned vs int
This is useful in detecting and reproducing SEGV errors,
but even after attempting to fix the issue, fuzz seems to fail in a
different way, so at this point we can't turn this on for CI.
This should create a workflow so we can manually trigger it.
Copy link
Collaborator

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼 let's hope this gets rid of the pesky crashes.

@ckipp01 ckipp01 merged commit 8079aed into tree-sitter:master Jan 17, 2023
@ckipp01
Copy link
Collaborator

ckipp01 commented Jan 17, 2023

@keynmol I'm going to just merge and try to update nvim-treesitter right away since people are hitting on this. Please do still take a gander at this though and we can adjust if necessary.

ckipp01 added a commit to ckipp01/nvim-treesitter that referenced this pull request Jan 17, 2023
I just missed the cron to generate this by like an hour, so I'm just
manually shooting this in. This should help in the crashes reported in
nvim-treesitter#4170 since it
includes tree-sitter/tree-sitter-scala#160.
@eed3si9n eed3si9n deleted the wip/buffer branch January 17, 2023 14:03
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

Successfully merging this pull request may close these issues.

Crash

2 participants