llvm-project
llvm-project copied to clipboard
Clang crashes on large invalid array initializer (Out of Memory)
Overview
- bug was found from fuzzing
- crash on invalid
- Does not throw SIGKILL but gives full stack dump on CompilerExplorer for Out of Memory (OOM)
Code
y0[]= { [3766666666]7}
CompilerExplorer
https://godbolt.org/z/9bxezsqfd
Notes
- seems to crash on all previous versions of x86-64 clang from CompilerExplorer
- on my 64GB machine, attempted to allocate >50GB of space then crash
@llvm/issue-subscribers-clang-frontend
Author: Andy Benson (apbenson00)
## Overview
- bug was found from fuzzing
- crash on invalid
- Does not throw SIGKILL but gives full stack dump on CompilerExplorer for Out of Memory (OOM)
Code
y0[]= { [3766666666]7}
CompilerExplorer
https://godbolt.org/z/9bxezsqfd
Notes
- seems to crash on all previous versions of x86-64 clang from CompilerExplorer
- on my 64GB machine, attempted to allocate >50GB of space then crash