Bug 147790 - "xwdtopnm: object too large"
Summary: "xwdtopnm: object too large"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: netpbm
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-11 11:01 UTC by Jonathan Kamens
Modified: 2013-07-02 23:06 UTC (History)
1 user (show)

Fixed In Version: 10.26.4-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-03-14 09:21:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
bzipped xwd that exhibits this problem (47.35 KB, application/octet-stream)
2005-02-16 03:30 UTC, Jonathan Kamens
no flags Details

Description Jonathan Kamens 2005-02-11 11:01:13 UTC
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.

Comment 1 Jindrich Novy 2005-02-15 14:10:28 UTC
Hello Jonathan,

I was unable to reproduce it with netpbm-10.26-1 and
ImageMagick-6.0.7.1-4. Could you attach here the xwd image that needs
to be converted with xwdtopnm?

Jindrich

Comment 2 Jonathan Kamens 2005-02-16 03:30:08 UTC
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".

Comment 3 Jindrich Novy 2005-03-14 09:02:39 UTC
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.

Thanks,
Jindrich

Comment 4 Jindrich Novy 2005-03-14 09:21:32 UTC
New netpbm is just built.


Note You need to log in before you can comment on or make changes to this bug.