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

Bug#771191: lintian: test for inclusion of non-lossy lena/lenna image and flag as potentially non-DFSG



Package: lintian
Version: 2.5.30+deb8u2
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

A graphics file popular to include e.g. in testsuites is a scanning from
November 1972 issue of Playboy, which is not DFSG compliant:
<https://en.wikipedia.org/wiki/File:Lenna.png#Licensing>.

See bug#771126 for a concrete example.  I have tried our codesearch to
discover more, and have found some but failed to find a reliable search
pattern using that interface.

It is used for color calibration and therefore needed in non-lossy
format but can vary in size and serialization, so simple md5 detection
is inefficient, I suspect.

Filename typically includes "lena" or "lenna" in its stem.

A simple check could be scan for /\blenn?a\b/ in filename, and then
check with "file" if content is a graphics file.

More reliable check might involve serializing hits of above loose check
in some deterministic manner, compute md5 from that, and compare against
a blacklist.


 - Jonas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQF8BAEBCgBmBQJUdx/7XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ3NjQ4ODQwMTIyRTJDNTBFQzUxRDQwRTI0
RUMxQjcyMjM3NEY5QkQ2AAoJEE7BtyI3T5vWJckIALKrSGJjSRbt6VFcWP+hhUfa
y0Hf3AOgLIeDi9K88FBLnloNzlQIEKA8mqvfyKfnJ9cahEVCbzXqMMtte1mMZiRc
YZuvj93zeGTJne9BOZi21sIa+oDsz2DVSAhJ/sXTi+6JpmuuR6/eeKM8GuwEBeSZ
LKQ1SUcTYOMdahejXAtM3/cU0hWed30cZR2oxGpYic/Faxp4irrpm+mFQZXDctgW
4Z4nVWLKK5egH23BGeqIBhHQfJ1YKUkLwihSc7vg+y9QyzYT0nxZQsEr1CwgVZcW
z/2ufvacdBQEBBT9V2XaVxxhy4uchgABnHml48D4+OJkJNMwokMwM3o4T6IKoc0=
=NOzw
-----END PGP SIGNATURE-----


Reply to: