Create a safe archive extractor script /root/extractor.py that extracts a tar.gz archive into a target…
Create a safe archive extractor script /root/extractor.py that extracts a tar.gz archive into a target…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Goal : Given a tar.gz archive path and a target directory path…
The task
**Goal**: Given a tar.gz archive path and a target directory path as command-line arguments, extract all files from the archive into the target directory, but ONLY if every file in the archive has a safe path (no absolute paths, no `..` components, no symlinks pointing outside the target, no duplicate entries that…