#27 Invalid operation msgbox with pngtest.exe

libpng_code
open
5
2003-02-10
2003-01-23
Anonymous
No

Problem appears on Win98. libpng 1.2.5 compiled/linked
with MinGW 2.0.0. (GCC 3.2) using makefile.dj2 (zlib 1.1.4
compiled in the same environment). pngtest.exe works OK
with the default PNG file but it has problems when I
resize/save again with Irfan View/Paint Shop Pro (didn't
test other programs). It results in "invalid operation"
message box. I attach the PNG file causing problems, you
can try to reproduce. If needed I can also send the
executable.

My mail:

maciejsinilo@o2.pl

Discussion

  • PNG file causing the problems

     
    Attachments
    • assigned_to: nobody --> glennrp
     
  • Logged In: YES
    user_id=7859

    Can you supply the output printed by pngtest before the failure?
    Glenn

     
  • Maciej Sinilo
    Maciej Sinilo
    2003-02-14

    Logged In: YES
    user_id=709833

    Here's the pnglib output before it crashes:

    Testing libpng version 1.2.5

    with zlib version 1.1.4

    libpng version 1.2.5 - October 3, 2002

    Copyright (c) 1998-2002 Glenn Randers-Pehrson

    Copyright (c) 1996-1997 Andreas Dilger

    Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.

    library (10205): libpng version 1.2.5 - October 3, 2002

    (header)

    pngtest (10205): libpng version 1.2.5 - October 3, 2002

    (header)

    sizeof(png_struct)=608, sizeof(png_info)=288

    Testing pngtest.png:

    ... and here we have the msgbox. From tests in my own code I

    can say it usually happens after decoding several (usually 2-3

    max) lines