rschupp / PAR-Packer

(perl) Generate stand-alone executables, perl scripts and PAR files https://metacpan.org/pod/PAR::Packer
Other
48 stars 13 forks source link

FIX: Get exe size from file handle instead of path #42

Closed Andrew-Kulpa closed 3 years ago

Andrew-Kulpa commented 3 years ago

Description

Use a file handle instead of a path to determine file size.

Motivation

Stat and the -s operator do not seem to support the \\?\ prefix that IIS adds when executing CGI. This meant that par.pl could never determine the size of the called exe breaking the magic position logic.

Related Issues