HF RL Explorer

Create a safe archive extractor script at /app/extract that extracts a tar.gz archive to a target directory…

Create a safe archive extractor script at /app/extract that extracts a tar.gz archive to a target directory…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The script takes exactly two arguments: the path to a .tar.gz file, and a target directory path. It must: -…

The task

The script takes exactly two arguments: the path to a .tar.gz file, and a target directory path. It must: - Extract all files and directories from the archive into the target directory - Reject any archive that contains absolute paths (starting with /) or path traversal components (..) - Preserve all file…

Part of ai-and/termgrade-environments.