Commit 8177528
committed
Limit match length
Avoids quadratic runtime and potential DoS with adversarial inputs
Ref oobabooga/text-generation-webui#60471 parent c68b3c8 commit 8177528
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | | - | |
| 501 | + | |
| 502 | + | |
502 | 503 | | |
503 | 504 | | |
504 | 505 | | |
| |||
0 commit comments