-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[clang] Assertion `Offset >= Size' failed #122117
Labels
Comments
EugeneZelenko
added
clang:codegen
crash
Prefer [crash-on-valid] or [crash-on-invalid]
generated by fuzzer
and removed
clang
Clang issues not falling into any other category
labels
Jan 8, 2025
@llvm/issue-subscribers-clang-codegen Author: None (wxie7)
code:
```c
struct S {
short a;
char b[~(__SIZE_TYPE__)0 / __CHAR_BIT__ - 1];
};
void foo(void) {
struct S s = {0};
}
```
just crash on assertions trunk
https://godbolt.org/z/f4fMjK7W5
I didn't find any similar open issues.
generated via fuzzing
<details><summary><strong>Backtrace</strong></summary>
</p> |
Looks related to: #88208 goes back to clang-3.5: https://godbolt.org/z/vsxTrxf4Y If we modify it a bit: https://godbolt.org/z/TjMbYs7zd we obtain: <source>:5:6: warning: stack frame size (2305843009213693960) exceeds limit (4294967295) in 'foo()' [-Wframe-larger-than]
5 | void foo(void) {
| ^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
code:
just crash on assertions trunk
https://godbolt.org/z/f4fMjK7W5
I didn't find any similar open issues.
generated via fuzzing
Backtrace
The text was updated successfully, but these errors were encountered: