mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 13:59:28 +08:00
safe_extract_zip writes members one by one into the KB raw/ directory. When a later member tripped a zip-bomb guard or failed its CRC check, the upload was rejected with HTTP 400 but every member written before it, and for a CRC failure the corrupt member itself, stayed on disk. Delete the files this call wrote before the error propagates, and drop a member's partial output when it fails mid-read.