Skip to content

Fix a fuzzer failure by making sure array sizes aren't more than 1e6 bits.#4471

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_938109061
Jul 7, 2026
Merged

Fix a fuzzer failure by making sure array sizes aren't more than 1e6 bits.#4471
copybara-service[bot] merged 1 commit into
mainfrom
test_938109061

Conversation

@copybara-service

Copy link
Copy Markdown

Fix a fuzzer failure by making sure array sizes aren't more than 1e6 bits.

This can happen in this simple case:

const too_big = -u32:19;
const too_bit_array = sN[too_big]:-1;

Previously this attempted to create a bit array of almost 4e9 bits,
which caused a compile-time core dump.

Now, this is a type-checking-time error.

@copybara-service copybara-service Bot force-pushed the test_938109061 branch 4 times, most recently from e0b2d51 to 89223c1 Compare July 7, 2026 13:26
…bits.

This can happen in this simple case:

```
const too_big = -u32:19;
const too_bit_array = sN[too_big]:-1;
```

Previously this attempted to create a bit array of almost 4e9 bits,
which caused a compile-time core dump.

Now, this is a type-checking-time error.

PiperOrigin-RevId: 943894550
@copybara-service copybara-service Bot merged commit 9556d41 into main Jul 7, 2026
@copybara-service copybara-service Bot deleted the test_938109061 branch July 7, 2026 14:58
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