Summary of the task:
tgz
From the manual
The :: Extract archive can use either pure perl modules or the command line of programs under the hood. Some of the pure perl modules (for example, Archive :: Tar and Compress :: unLZMA) take the entire contents of the archive into memory, which may not be possible on your system. Consider setting the global variable $ Archive :: Extract :: PREFER_BIN to 1, which prefers the use of command-line programs and will not consume so much memory.
Questions:
$Archive::Extract::PREFER_BIN = 1
$ Archive :: Extract :: PREFER_BIN will protect me from reusing memory, but the standard unzip , tar -z unrar binaries are safe zip bomb re-attacks, such as attacks?
unzip
tar -z
unrar
If not, how to handle a securely loaded compressed directory tree ? (therefore, there is not only one file inside, for example, zip archive ).
directory tree
zip archive
$ Archive :: Extract :: PREFER_BIN = 1 does not protect you from mail bombs, you pass the problem to the binary unpacker of your system.
This question may help you. I like the idea of starting a second process using ulimit.
Source: https://habr.com/ru/post/1496438/More articles:Managing the number of instances of a class - c #When trying to use IoC for asp.net mvc 4, the exception "Without parameters without constructor for this object" is asp.net-mvc-4Full-text search on PostgreSQL - sqlMetaFile for large print - c #Imagine the delay when calling ajax in select2 module - javascriptWebRupee not working - javascriptmemory leak presentViewController - iosWill calling the currentViewController method in all view controllers lead to a memory leak in iOS? - iosHow to run unit tests for Xamarin library projects (iOS and Android)? - androidOn my asp.net-mvc page, why is the right dropdown menu not selected? - selectedAll Articles