Skip to content

fix: no-space-for-terminator#10

Merged
hyle merged 1 commit intomainfrom
fix-sec
Mar 14, 2026
Merged

fix: no-space-for-terminator#10
hyle merged 1 commit intomainfrom
fix-sec

Conversation

@hyle
Copy link
Owner

@hyle hyle commented Mar 14, 2026

Adjusted ignore.c (line 54) to allocate plen + 1 bytes for the scratch buffer and track that full capacity. The old code was effectively safe because it reused the trailing / slot as the terminator, but the new form is clearer and satisfies CodeQL.

@hyle hyle self-assigned this Mar 14, 2026
@hyle hyle merged commit 5e87b73 into main Mar 14, 2026
3 checks passed
@hyle hyle deleted the fix-sec branch March 14, 2026 19: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.

1 participant