[gs-bugs] [Bug 691505] writeobject writes tokens GS can't read back in

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Wed Jul 28 03:04:52 UTC 2010


Alex Cherepanov <alex.cherepanov at artifex.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #1 from Alex Cherepanov <alex.cherepanov at artifex.com> 2010-07-28 03:04:51 UTC ---
Ghostscript works a designed.
PLRM p. 167 says:
  The scanner generates a syntaxerror when it encounters a binary
  object sequence that is malformed in any way. Possible causes include:
  ... an “unused” field that is not 0

PLRM p. 173 says:
  Accompanying the top-level object in the object sequence is a 1-byte
  tag, which is specified as an operand of printobject and writeobject.
  This tag is carried in the second byte of the object, which is
  otherwise unused (see Figure 3.3 on page 164).

I.e. writeobject with a tag other than 0 generates invalid binary object
sequence by Adobe design and Ghostscript implements this. The object can
read back by gs when the tag is 0.

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list