Skip to content

fix various code completion crashes#2626

Open
Techatrix wants to merge 3 commits intomasterfrom
techatrix/fuzzer-fixes
Open

fix various code completion crashes#2626
Techatrix wants to merge 3 commits intomasterfrom
techatrix/fuzzer-fixes

Conversation

@Techatrix
Copy link
Member

Found through fuzzing with zigtools/sus.

@Techatrix Techatrix force-pushed the techatrix/fuzzer-fixes branch from 84aa7dd to 5efb45b Compare March 1, 2026 06:42
Comment on lines +511 to +512
const start = @min(token_start + 1, source_index);
break :start .{ start, start };
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const start = @min(token_start + 1, source_index);
break :start .{ start, start };
break :start .{ token_start + 1, token_start + 1 };

break :start .{ token_start, token_start };
}
};
end = @max(end, source_index);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
start = @min(start, source_index);
end = @max(end, source_index);

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.

2 participants