Bug 173342 - CVE-2005-3662 netpbm off by one error
Summary: CVE-2005-3662 netpbm off by one error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: netpbm
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Ben Levenson
URL:
Whiteboard: impact=moderate,public=20051112,repor...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-16 14:19 UTC by Josh Bressers
Modified: 2013-07-02 23:11 UTC (History)
1 user (show)

Fixed In Version: RHSA-2005-843
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-12-20 14:39:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2005:843 0 normal SHIPPED_LIVE Moderate: netpbm security update 2005-12-20 05:00:00 UTC

Description Josh Bressers 2005-11-16 14:19:29 UTC
Netpbm off my one error

The latest release of pnmtopng fixed an off by one error in the
alphas_of_color[] array.

--- pnmtopng-2.38/pnmtopng.c    2002-06-16 17:38:48.000000000 -0700
+++ pnmtopng-2.39/pnmtopng.c    2005-11-12 19:40:45.000000000 -0800
@@ -389,8 +419,8 @@
int alpha_rows;
int alpha_cols;
int alpha_trans;
-  gray *alphas_of_color[MAXCOLORS];
-  int alphas_of_color_cnt[MAXCOLORS];
+  gray *alphas_of_color[MAXCOLORS+1];
+  int alphas_of_color_cnt[MAXCOLORS+1];
int alphas_first_index[MAXCOLORS+1];
int mapping[MAXCOLORS];      /* mapping[old_index] = new_index */
int colors;


This issue also affects RHEL2.1

Comment 1 Jindrich Novy 2005-11-17 17:45:51 UTC
The fix is now applied in both 3 and 2.1.
The patch isn't cleanly applicable though.


Comment 5 Red Hat Bugzilla 2005-12-20 14:39:03 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-843.html



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