Review on zipfile change

I made a PR to fix the core issue in When checking whether a file is a zip file, a MemoryError was triggered. After investigation, it was found that it was a read() read exception. · Issue #113977 · python/cpython · GitHub, the zipfile module when checking “is this a zipfile” may read an unbounded amount of data (and in the Issue’s case, more than the amount of memory remaining on the machine). Hoping to get a review of it / move it forward.

Thanks,
Cody

1 Like

merged, thanks!

1 Like