control: notfound -1 libpng16-16
control: reassign -1 libauthen-captcha-perl
control: found -1 1.024-1
control: severity -1 serious

On Tue, 12 Sep 2017 22:47:01 +0200 Xavier Guimard <x.guim...@free.fr> wrote:
> reassign 875627 libpng16-16 1.6.32-1
> 
> affects 875627 libauthen-captcha-perl
> 
> stop
> 
> 
> all softwares that use libpng16-16 can't read
> /usr/share/perl5/Authen/Captcha/images/background5.png provided by 
> libauthen-captcha-perl since 1.6.32-1 version. Other softwares like 
> Firefox can read it.
> 

that check is something new, implemented in newer libpng1.6 releases (and the 
fact
that firefox opens the file, doesn't mean the file is correct).

Now libpng better detects a bad png files, and this is not a bug of course,
but rather a sign that the image should be fixed.

pngfix /usr/share/perl5/Authen/Captcha/images/background5.png
IDAT OK  default 15 15 7197 7035 
/usr/share/perl5/Authen/Captcha/images/background5.png
HEAD ERR 00 libpng Success Success IDAT:_chunk_data_is_too_large 
/usr/share/perl5/Authen/Captcha/images/background5.png

I'm raising the severity to serious, because this seems to be a serious enough 
bug, even more because the package can't
rebuild now (fails testsuite, e.g. in Ubuntu, while on Debian for some bug the 
error is not caught in dh_auto_test)

e.g. Ubuntu failure:

make[1]: Entering directory '/build/libauthen-captcha-perl-1.024'
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" 
"-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" 
t/*.t
GD Warning: gd-png: fatal libpng error: IDAT: chunk data is too large
GD Warning: gd-png error: setjmp returns error condition 1
gdImageCreateFromPng error at /usr/lib/x86_64-linux-gnu/perl5/5.26/GD/Image.pm 
line 178.
t/1.t .. 
1..32
# Running under perl version 5.026000 for linux
# Current time local: Wed Sep 13 06:43:10 2017
# Current time GMT:   Wed Sep 13 06:43:10 2017
# Using Test.pm version 1.30
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 8/32 subtests 

Test Summary Report
-------------------
t/1.t (Wstat: 65280 Tests: 24 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 32 tests but ran 24.
Files=1, Tests=24,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.03 cusr  0.00 
csys =  0.05 CPU)
Result: FAIL
Failed 1/1 test programs. 0/24 subtests failed.
Makefile:874: recipe for target 'test_dynamic' failed
make[1]: *** [test_dynamic] Error 255
make[1]: Leaving directory '/build/libauthen-captcha-perl-1.024'
dh_auto_test: make -j1 test TEST_VERBOSE=1 returned exit code 2


Interestingly enough, that file in Ubuntu installations is correct, probably 
because of a side effect
of png optimizer, ran automatically in Ubuntu builders
https://launchpadlibrarian.net/173920478/buildlog_ubuntu-utopic-i386.libauthen-captcha-perl_1.024-1_UPLOADING.txt.gz

OptiPNG 0.6.4: Advanced PNG optimizer.
Copyright (C) 2001-2010 Cosmin Truta.

** Processing: ./usr/share/perl5/Authen/Captcha/images/background5.png
200x35 pixels, 8 bits/pixel, grayscale
Input IDAT size = 7197 bytes
Input file size = 7314 bytes

Trying:
  zc = 9  zm = 8  zs = 0  f = 0         IDAT size = 6057
  zc = 9  zm = 8  zs = 1  f = 0         IDAT size = 6041
  zc = 1  zm = 8  zs = 2  f = 0         IDAT size = 6041
  zc = 9  zm = 8  zs = 3  f = 0         IDAT size = 6041
  zc = 9  zm = 8  zs = 0  f = 1         IDAT size = 5958
  zc = 9  zm = 8  zs = 1  f = 1         IDAT size = 5917
  zc = 1  zm = 8  zs = 2  f = 1         IDAT size = 5917
  zc = 9  zm = 8  zs = 3  f = 1         IDAT size = 5917
  zc = 9  zm = 8  zs = 0  f = 2
  zc = 9  zm = 8  zs = 1  f = 2
  zc = 1  zm = 8  zs = 2  f = 2
  zc = 9  zm = 8  zs = 3  f = 2
  zc = 9  zm = 8  zs = 0  f = 3
  zc = 9  zm = 8  zs = 1  f = 3
  zc = 1  zm = 8  zs = 2  f = 3
  zc = 9  zm = 8  zs = 3  f = 3
  zc = 9  zm = 8  zs = 0  f = 4
  zc = 9  zm = 8  zs = 1  f = 4         IDAT size = 5895
  zc = 1  zm = 8  zs = 2  f = 4         IDAT size = 5895
  zc = 9  zm = 8  zs = 3  f = 4
  zc = 9  zm = 8  zs = 0  f = 5         IDAT size = 5883
  zc = 9  zm = 8  zs = 1  f = 5         IDAT size = 5834
  zc = 1  zm = 8  zs = 2  f = 5         IDAT size = 5834
  zc = 9  zm = 8  zs = 3  f = 5
                               
Selecting parameters:
  zc = 1  zm = 8  zs = 2  f = 5         IDAT size = 5834

Output IDAT size = 5834 bytes (1363 bytes decrease)
Output file size = 5951 bytes (1363 bytes = 18.64% decrease)

        5951        5951 100% 
./usr/share/perl5/Authen/Captcha/images/background5.png (Unsupported bit 
depth/color type, 8/0)
        5951        5951 100%


Hope this helps,

Gianfranco

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to