sub automake_tests {
my $upload_file = shift;
- my $log_style = shift;
- my $debug = shift;
my $error_string = '';
my @debug_log;
# First check if the file contains any Makefile.in files
push(@debug_log,"DEBUG: "
."testing $upload_file for presence of Makefile.in")
- if $debug;
+ if DEBUG;
my $tar_cmd = "/bin/tar -tf $upload_file";
open (TAR, "$tar_cmd|")
or return("Error: failed to run command: $tar_cmd\n\n", \@debug_log);
# If it does, check inside them
push(@debug_log,"DEBUG: found Makefile.in, "
."testing for CVE-2009-4029 and CVE-2012-3386")
- if $debug;
+ if DEBUG;
$tar_cmd = "/bin/tar --to-stdout -x -f $upload_file 'Makefile.in' "
."--wildcards '*/Makefile.in' 2>/dev/null";
open (TAR, "$tar_cmd|")
sub check_vulnerabilities {
my $upload_file = shift;
- my $log_style = shift;
- my $debug = shift;
my ($error_string, $error_log_ref) =
- automake_tests($upload_file,$log_style,$debug);
+ automake_tests($upload_file);
return ($error_string, $error_log_ref);
}
or fatal("gpg verify of upload file ($upload_file) failed",1);
my ($error_string, $error_log_ref) =
- check_vulnerabilities($upload_file,$Log_Style,DEBUG);
+ check_vulnerabilities($upload_file);
my @error_log = @$error_log_ref;
if (DEBUG and $#error_log > -1) {