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
The fix is now applied in both 3 and 2.1. The patch isn't cleanly applicable though.
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