llvm-project
llvm-project copied to clipboard
Clang crash on global-scope statement with ellipsis ('...')
- crash on invalid input
- bug found from fuzzing
Minimized Code
g(h(x)...)
Full Example Code
int g(int);
int h(int);
int x = 0;
g(h(x)...); // crash
Note:
- Crash only found in clang, not present in clang++
- If the same statement is moved inside a function (ex. main()), or assigned to a variable, the crash does not occur.
CompilerExplorer
https://godbolt.org/z/j7q9Pcfh1
@llvm/issue-subscribers-clang-frontend
Author: Andy Benson (apbenson00)
- crash on invalid input
- bug found from fuzzing
Minimized Code
g(h(x)...)
Full Example Code
int g(int);
int h(int);
int x = 0;
g(h(x)...); // crash
Note:
- Crash only found in clang, not present in clang++
- If the same statement is moved inside a function (ex. main()), or assigned to a variable, the crash does not occur.
CompilerExplorer
https://godbolt.org/z/j7q9Pcfh1
May I pick up this issue?
May I pick up this issue?
We assign issues after there is a PR and we check that it is headed in the right direction.
May I pick up this issue?
We assign issues after there is a PR and we check that it is headed in the right direction.
Okay, thanks. Since @Ayush3941 's fix seems to solve this issue, I would seek other problems for contribution.