Skip to content
New issue

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

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

Already on GitHub? # to your account

BUG: Avoid stackoverflows and memory issues in zod while processing large strings #3880

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

klh
Copy link

@klh klh commented Dec 4, 2024

This commit will:

  • Add a generalized helper for chunkProcessing in parseUtil
  • Utilize it for base64 string verification

NOTES: there are sure to be other cases when handling large strings that can benefit from this, but i think maintainers should decide where and when.

klh added 3 commits December 4, 2024 13:00
When processing large strings zod will cause overflows and inefficient handling of items - especially base64 strings can be large at times
Copy link

netlify bot commented Dec 4, 2024

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 9ac9edd
🔍 Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/6750466d4fd93d0008913fc8
😎 Deploy Preview https://deploy-preview-3880--guileless-rolypoly-866f8a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@klh klh changed the title Avoid stackoverflows and memory issues in zod while processing large strings BUG: Avoid stackoverflows and memory issues in zod while processing large strings Dec 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant