[gs-cvs] gs/src

Alex Cherepanov alexcher at ghostscript.com
Thu Jul 21 12:32:08 PDT 2005


Update of /cvs/ghostscript/gs/src
In directory casper2:/tmp/cvs-serv2588/gs/src

Modified Files:
	gxipixel.c 
Log Message:
Fix off-by-one error in Decode array testing.
Fix bug 688223.


Index: gxipixel.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gxipixel.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- gxipixel.c	8 Jun 2005 14:38:21 -0000	1.11
+++ gxipixel.c	21 Jul 2005 19:32:06 -0000	1.12
@@ -550,7 +550,7 @@
 	if (interleaved) {
 	    int num_components = penum->plane_depths[0] / penum->bps;
 
-	    for (i = 1; i <= num_components; i++) {
+	    for (i = 1; i < num_components; i++) {
 		if (decode[0] != decode[i * 2 + 0] ||
 		    decode[1] != decode[i * 2 + 1])
 		    break;



More information about the gs-cvs mailing list