Skip to content

Conversation

@xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Nov 1, 2025

…rguments

Motivation

3a3c062 introduced a buffer overflow for the case when there are more than 65535 formal arguments. It is a perfectly reasonable limitation, but we must not crash, corrupt memory or otherwise crash the process.

Add a test for the graceful behavior and switch to using an explicit uninitialized_copy_n to further guard against buffer overflows.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

…rguments

3a3c062 introduced a buffer overflow for the
case when there are more than 65535 formal arguments. It is a perfectly reasonable
limitation, but we *must* not crash, corrupt memory or otherwise crash the process.

Add a test for the graceful behavior and switch to using an explicit uninitialized_copy_n
to further guard against buffer overflows.
@Ericson2314
Copy link
Member

Good catch, sorry I missed this.

@Ericson2314 Ericson2314 added this pull request to the merge queue Nov 1, 2025
Merged via the queue into master with commit 6fa7510 Nov 1, 2025
21 checks passed
@Ericson2314 Ericson2314 deleted the no-buffer-overflows branch November 1, 2025 15:18
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