ClamAV is an open source (GPLv2) anti-virus toolkit.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
clamav/contrib/mpoolparse/mpoolparse.pl

17 lines
244 B

#!/usr/bin/perl
use strict;
use warnings;
my %frags = ();
while (<>) {
chomp;
next unless /^LibClamAV Warning: [mc]alloc .* size (\d+) .*$/;
$frags{$1}++;
}
foreach (sort {$a<=>$b} (keys(%frags))) {
print "$_, /* ($frags{$_}) */\n";
}