Red Hat Bugzilla – Bug 147790
"xwdtopnm: object too large"
Last modified: 2013-07-02 19:06:17 EDT
I dump a window with xwd and then try to convert it with xwdtopnm from
netpbm-10.26-1. I get: "xwdtopnm: object too large". ImageMagick
says it's a 937x918 window dump.
I was unable to reproduce it with netpbm-10.26-1 and
ImageMagick-184.108.40.206-4. Could you attach here the xwd image that needs
to be converted with xwdtopnm?
Created attachment 111122 [details]
bzipped xwd that exhibits this problem
Unbzip this and run "xwdtopnm < mozilla.xwd" and it produces the "object too
large" error I reported. Interestingly, when I run "xwdtopnm -verbose <
mozilla.xwd" I get "Input is different endianness from this machine" before I
get "object too large".
You're right. The problem is with multiplication overflow checking, where
bytes_per_line is got from a wrong structure (h11P), but the values with which
are lately operated are in h11FixedP, so the overflow check generates bogus
warnings as the h11P structure contains integers with incompatible endianess.
I fixed the overflow check and will close this bug after new netpbm is built.
New netpbm is just built.