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

Clang Attribute Push - Crash on Invalid

Open apbenson00 opened this issue 9 months ago • 1 comments

  • Bug found from fuzzing

Crashing Code

int x;
#pragma clang attribute push ([[noreturn (x))

Issue

  • Crash on invalid Input
  • Does not crash on preprocessor

CompilerExplorer

https://godbolt.org/z/1crhzKejP

apbenson00 avatar Feb 18 '26 20:02 apbenson00

@llvm/issue-subscribers-clang-frontend

Author: Andy Benson (apbenson00)

- Bug found from fuzzing

Crashing Code

int x;
#pragma clang attribute push ([[noreturn (x))

Issue

  • Crash on invalid Input
  • Does not crash on preprocessor

CompilerExplorer

https://godbolt.org/z/1crhzKejP

llvmbot avatar Feb 18 '26 20:02 llvmbot