Skip to content

fix: use chunked read for integration and preset manifest hash (import of github/spec-kit#3843) - #131

Open
one-kash wants to merge 1 commit into
mainfrom
import/pr-3843
Open

fix: use chunked read for integration and preset manifest hash (import of github/spec-kit#3843)#131
one-kash wants to merge 1 commit into
mainfrom
import/pr-3843

Conversation

@one-kash

Copy link
Copy Markdown

Imported from upstream PR github#3843
Original author: @Quratulain-bilal
Original head branch: fix/integrations-hash-chunked-read


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.
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.

2 participants