llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Clang crashes on large invalid array initializer (Out of Memory)

Open apbenson00 opened this issue 9 months ago • 1 comments

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

apbenson00 avatar Feb 24 '26 16:02 apbenson00

@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

llvmbot avatar Feb 24 '26 16:02 llvmbot