[gs-bugs] [Bug 691562] ERROR -15 closing pdfwrite device

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Aug 23 15:51:51 UTC 2010


http://bugs.ghostscript.com/show_bug.cgi?id=691562

--- Comment #2 from Ken Sharp <ken.sharp at artifex.com> 2010-08-23 15:51:50 UTC ---
This issue exposes three separate bugs in the processing of Unicode strings and
XMP metadata. 

Firstly as Alex says in comment #1, the character index counting was wrong when
converting PostScript escaped strings into binary, the character was advanced
past the last consumed character if it was not an octal escape, and up to the
last consumed character for an octal escape. This meant that non-octal escapes
consumed an extra character from the buffer.

Secondly, the backspace escape (\b) was not recognised, causing return of a 'b'
character instead of the binary value 0x08.

Thirdly the conversion from UTF-16 into UTF-8 used the wrong value for the end
of the destination (UTF-8) buffer, causing an invalid abort because of buffer
overflow.

I have fixes for all 3 of these, and am about to regression test them. I also
want to check and see if there are any other PostScript escape sequences not
being catered for.

-- 
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