Skip to content

fix: use chunked read for integration and preset manifest hash - #3843

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/integrations-hash-chunked-read
Open

fix: use chunked read for integration and preset manifest hash#3843
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/integrations-hash-chunked-read

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Summary

Replace unbounded f.read() with chunked iteration to prevent excessive memory allocation.

Changes

  • integrations/catalog.py: Use chunked read in get_hash()
  • presets/__init__.py: Use chunked read in get_hash()

Replace unbounded fh.read() with chunked iteration to prevent excessive
memory allocation on large or corrupted manifest files. Applies to both
integrations/catalog.py and presets/__init__.py get_hash() methods.
@Quratulain-bilal
Quratulain-bilal requested a review from mnriem as a code owner July 29, 2026 08:14
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.

1 participant