Create a safe archive extractor script at /app/extractor.py that extracts files from a custom archive…
Create a safe archive extractor script at /app/extractor.py that extracts files from a custom archive…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Goal : Extract files from an archive that contains multiple file…
The task
**Goal**: Extract files from an archive that contains multiple file entries. Each entry consists of: - 2 bytes: filename length (big-endian unsigned 16-bit integer) - N bytes: filename (UTF-8 encoded) - 8 bytes: file size (big-endian unsigned 64-bit integer) - S bytes: file content