Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make interfaces more robust against untrusted input/misuse #13

Open
4 tasks
Dan-wanna-M opened this issue Aug 29, 2024 · 0 comments
Open
4 tasks

Make interfaces more robust against untrusted input/misuse #13

Dan-wanna-M opened this issue Aug 29, 2024 · 0 comments

Comments

@Dan-wanna-M
Copy link
Owner

Dan-wanna-M commented Aug 29, 2024

Compiling schemas into kbnf engine is a very nontrivial process and unfortunately it is theoretically impossible to have a truly robust algorithm(in the sense of no accidental quadratic or even nonpolynomial complexity), but we can (and should) add some docs/warnings/assertions to ensure users' server wont accidentally use 77GB RAM(+VRAM) and killed by OS.

  • DFA max memory cap
  • Monitor potentially ambiguous CFG grammar?
  • Warning on the exponential behavior of optional JSON fields support
  • more comprehensive docs on this issue, maybe a separate dedicated page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant