safeextract

command module
v0.0.0-...-1a6e6c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 10 Imported by: 0

README

Safe Extract

Description

This is a simple library to safely extract files from a zip or tar archive. It checks:

  • Archive only contains regular files and directories (or safe symlinks if so configured)
  • No files are extracted outside of the target directory
  • No files are extracted with absolute paths
  • No symlinks are extracted which point outside of the target directory
  • The archive is smaller than a configurable limit

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL