Bug 163596 - pbmtolj coredumps
Summary: pbmtolj coredumps
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-07-19 11:27 UTC by Jonathan Kamens
Modified: 2013-07-02 23:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-07-21 13:40:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jonathan Kamens 2005-07-19 11:27:03 UTC
jik2:~!1039$ rpm -q netpbm; pbmtext "The quick brown fox jumped over the lazy
dogs." | pbmtolj -resolution 600 > /dev/null
netpbm-10.28-3
pbmtolj: pbmtolj.c:181: putitem: Assertion `rowBufferIndex < rowBufferSize' failed.
Aborted (core dumped)
jik2:~!1040$

Comment 1 Jindrich Novy 2005-07-21 12:47:48 UTC
This issue is caused by an integer overflow in the padding calculation. In some
cases (as presented in your example) the padright (unsigned int) variable can
reach below zero (-1).

Then 
for (col = 0; col < padright; ++col) putbit(0);
will output really MANY bits out...



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