<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>His Deeds Are Dust &#187; Uncategorized</title>
	<atom:link href="http://hisdeedsaredust.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://hisdeedsaredust.com</link>
	<description>surveying sub-optimal solutions</description>
	<lastBuildDate>Wed, 02 May 2012 13:16:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>pbmclean is dead in Fedora releases of Netpbm</title>
		<link>http://hisdeedsaredust.com/2009/03/pbmclean-is-dead-in-fedora-releases-of-netpbm/</link>
		<comments>http://hisdeedsaredust.com/2009/03/pbmclean-is-dead-in-fedora-releases-of-netpbm/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 12:38:52 +0000</pubDate>
		<dc:creator>Paul Flo Williams</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[scanning]]></category>

		<guid isPermaLink="false">http://hisdeedsaredust.com/?p=22</guid>
		<description><![CDATA[I&#8217;ve just been bitten by a bug in pbmclean, one of the tools in the Netpbm package of graphics tools, as provided by Fedora. For a long time, I&#8217;ve been building Netpbm from sources, but I&#8217;ve been trying to cut down the amount of rework I have to do when updating Fedora, so I&#8217;ve moved [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just been bitten by a bug in <code>pbmclean</code>, one of the tools in the <a href="http://netpbm.sourceforge.net/">Netpbm</a> package of graphics tools, as provided by Fedora. For a long time, I&#8217;ve been building Netpbm from sources, but I&#8217;ve been trying to cut down the amount of rework I have to do when updating Fedora, so I&#8217;ve moved back to RPMs, but my scanning and cleanup toolchain just broke when <code>pbmclean</code> refused to work at all. A quick test confirmed that it fails for the simplest possible image as well:</p>
<pre>$ pbmmake 1 1 | pbmclean > /dev/null
pbmclean: EOF / read error reading a one-byte sample</pre>
<p>A bug for this in <a href="https://bugzilla.redhat.com/show_bug.cgi?id=493015">Red Hat Bugzilla</a> but, if anyone else is experiencing this right now, a simple workaround is pull down the source RPM and rebuild the package without <code style="white-space:nowrap">netpbm-10.23-security.patch</code>.</p>
<p>This patch seems to incorporate a load of tests for overflowing arithmetic in image sizes but the &#8220;fixes&#8221; kill <code>pbmclean</code> and <code>pbmlife</code>, because their tests for row numbers have been incorrectly changed, from:</p>
<pre>if (row + 1 < rows)</pre>
<p>(in <code>pbmclean.c</code>), to</p>
<pre>if (row <= rows)</pre>
<p>which clearly isn't the same thing at all. The original tests, although odd-looking, are correct because both <code>pbmclean</code> and <code>pbmlife</code> incorporate row read-ahead, because they change pixels based on the properties of their neighbours.</p>
<p>This bug is present in <code style="white-space:nowrap">netpbm-progs-10.35.58-1.fc9.i386</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hisdeedsaredust.com/2009/03/pbmclean-is-dead-in-fedora-releases-of-netpbm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

