Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix use-after-free with regex_match()
The smatch does not copy the input, it points to the original. So if the string is on the stack and goes out of scope because it's only used as a parameter, it will just be junk. Make a copy of it at a higher scope.
- Loading branch information