[PATCH] D126861: [RISCV] Fix missing stack pointer recover

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 9 12:32:20 PDT 2022


efriedma added a comment.

I'm a bit concerned about the example given in the commit message.  In general, if we catch an exception from a call, we should immediately free the memory allocated for the call arguments.  Otherwise, if we throw exceptions in a loop, we can allocate an arbitrary amount of memory, which eventually leads to a stack overflow.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126861



More information about the llvm-commits mailing list