mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 14:42:29 -05:00
[PR #1182] [MERGED] Improve dataset extraction robustness #1158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1182
Author: @RinZ27
Created: 2/19/2026
Status: ✅ Merged
Merged: 2/22/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/safe-data-extraction📝 Commits (1)
7d2cd5aImprove robustness of dataset extraction by validating paths📊 Changes
1 file changed (+14 additions, -1 deletions)
View changed files
📝
tinytorch/milestones/data_manager.py(+14 -1)📄 Description
Updated the dataset extraction logic in
data_manager.pyto include path validation. This ensures that when extracting the CIFAR-10 dataset, all members are strictly contained within the target directory, preventing potential file system issues or unintended overwrites. I noticed the current implementation usesextractall()directly, so adding this check makes the process much more robust for students working with the framework.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.