Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler): Type inference rewriter: Fix use-after-free in functio…
…n renaming The type inference rewriter changes the name of the rewritten function to the name of the original function when the rewriting process is complete. However, the name is retrieved from the original function operation after the operation has already been replaced and thus destroyed, resulting in a null pointer dereference. This change retrieves the name of the original function before it is replaced and saves it in a copy, which is then used to safely assign the new name to the rewritten function.
- Loading branch information