Skip to content

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

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_938109061
Draft

Fix a fuzzer failure by making sure array sizes aren't more than 1e6 bits.#4471
copybara-service[bot] wants to merge 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.

…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: 938109061
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