forked from intel/cri-resource-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/utils: try to avoid zipslip in tar extraction.
Don't use os.MkdirAll in tar extraction. Expect the archive to be self-contained in this regard. Sanitize directory and file paths during archive extraction, trying to ensure that entries do not escape the created top-level directory. Signed-off-by: Krisztian Litkey <[email protected]>
- Loading branch information
Showing
1 changed file
with
36 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters