Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): Fix exponenetial regexp in error formatting code (#17907)
In order to render the fancy error message, we try to find a known prisma call in the source code. To do so, we use a reg exp, which turned out to be of exponential complexity. To make matters worth, embedded DMMF in client prior to 4.0.0 could actually trigger exponential backgtracking by itself. Fix #12355
- Loading branch information
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters