8000 Fix OOM error with infinitely expanding schema by frenchy64 · Pull Request #1069 · metosin/malli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix OOM error with infinitely expanding schema #1069

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

Merged
merged 5 commits into from
Jul 19, 2024

Conversation

frenchy64
Copy link
Collaborator
@frenchy64 frenchy64 commented Jul 16, 2024

Close #1061

The call (m/schema [(m/schema :any)]) infinitely wraps :any using ::schema until memory is exhausted. Stop as soon as we detect the first wrapping.

In CLJS this doesn't seem to be allowed in the first place.

@frenchy64 frenchy64 changed the title WIP: Fix OOM error with infinitely expanding schema Fix OOM error with infinitely expanding schema Jul 16, 2024
@frenchy64 frenchy64 marked this pull request as ready for review July 16, 2024 20:53
@ikitommi
Copy link
Member

good catch, thanks!

@ikitommi ikitommi merged commit 3840ef2 into metosin:master Jul 19, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

OutOfMemoryError Java heap space exhausted with wrong schema
2 participants
0