[gs-cvs] rev 7802 - trunk/gs/src

alexcher at ghostscript.com alexcher at ghostscript.com
Sun Mar 25 13:16:59 PDT 2007


Author: alexcher
Date: 2007-03-25 13:16:59 -0700 (Sun, 25 Mar 2007)
New Revision: 7802

Modified:
   trunk/gs/src/sa85d.c
Log:
Clear a Purify warning. Search for the EOD marher not earlier than
the start of the data buffer.

DIFFERENCES:
No CET or Comparefiles differences.


Modified: trunk/gs/src/sa85d.c
===================================================================
--- trunk/gs/src/sa85d.c	2007-03-25 17:47:16 UTC (rev 7801)
+++ trunk/gs/src/sa85d.c	2007-03-25 20:16:59 UTC (rev 7802)
@@ -45,7 +45,7 @@
     /* might be as many as 6 characters after the last valid data char  */
     /* D <cr> <lf> '~' <cr> <lf> '>' where 'D' is a data character.     */
     const byte *rlimit = pr->limit - (last ? 0 : 7); /* max EOD len + 1 */
-    const byte *r = rlimit;
+    const byte *r = max(p, rlimit);
     byte *wlimit = pw->limit;
     int ccount = ss->odd;
     ulong word = ss->word;



More information about the gs-cvs mailing list