[PATCH] D138774: Enhance stack protector

Alexander Kornienko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 05:36:57 PST 2022


alexfh added a comment.

There's another problem with this patch. Please ensure it's fixed before recommitting. Clang hangs while compiling the following short snippet reduced from an open-source library (compiled on x86-64, linux):

  $ cat q.c
  char *texsubexpr(char *expression, char *subexpr) {
    char *texchar();
    if (*expression) return texchar(expression, subexpr);
  }
  
  void __stack_chk_fail (void) {
    __builtin_trap ();
  }
  
  $ clang -O1  -w -fstack-protector-all   -c q.c  -o q.o


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138774/new/

https://reviews.llvm.org/D138774



More information about the llvm-commits mailing list