mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-30 13:40:27 +00:00
f2f7224b8d
- Add cumulative extraction size limit (_MAX_EXTRACTED_BYTES = 200 MB) that tracks uncompressed file sizes during extraction to guard against zip/tar bombs (small compressed archives that expand to huge sizes). - On any extraction failure (disk full, corrupted member, size limit), clean up the partially-extracted destination directory to avoid leaving orphaned folders in the workspace.