[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How does lintian detect embedded-zlib?



Hello,

Matthias Klumpp wrote:
> Does someone know more about Lintians way of finding embedded ZLibs?

>From /usr/share/lintian/checks/binaries:

if ($info->field('source') ne 'zlib' and $info->field('source') ne 'klibc'
    and $strings =~ /(?:in|de)flate (?:\d[ \w.\-]{1,20}[\w.\-])/m) {
    tag "embedded-zlib", $file;
}

$strings is:

my $strings = slurp_entire_file("strings/$file");

You might want to have a lintian run with --keep-lab, and check whatever
is in strings/, if anything there matches with the regex above.

Kindly,
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|----
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174



Reply to: