Bug 691641 - pdfdraw generates invalid xml trace
Summary: pdfdraw generates invalid xml trace
Status: RESOLVED DUPLICATE of bug 691559
Alias: None
Product: MuPDF
Classification: Unclassified
Component: apps (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-23 18:09 UTC by Kenny Ostrom
Modified: 2010-09-24 07:16 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenny Ostrom 2010-09-23 18:09:05 UTC
in res_text.c r2070
the function "fz_debugtext" outputs a character with 
printf("<g ucs=\"%c\" ...
but the character could be '"' 

it MUST output a string which is either the character or its xml escaped value, which would be "&quot;" in this example.
Comment 1 Kenny Ostrom 2010-09-23 21:43:33 UTC
duplicate of 691669 which is marked fixed, but it

*** This bug has been marked as a duplicate of bug 691559 ***
Comment 2 Tor Andersson 2010-09-24 07:16:16 UTC
The function fz_debugtext calls isxmlmeta to test whether to print a character verbatim (only for printable ascii non-xml-meta-characters) or with the U+ escaped unicode syntax. (") is tested as a meta character.