Bug 24067 - The contents are corrupted when the Xml file is created using XmlWriter.WriteRaw() method.
Summary: The contents are corrupted when the Xml file is created using XmlWriter.Write...
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.XML ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-10-27 01:10 UTC by Ryoji.Ishikawa
Modified: 2015-03-17 16:32 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample project and dump file (12.19 KB, application/x-zip)
2014-10-27 01:10 UTC, Ryoji.Ishikawa
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Ryoji.Ishikawa 2014-10-27 01:10:51 UTC
Created attachment 8511 [details]
Sample project and dump file

The contents are corrupted when the Xml file is created using XmlWriter.WriteRaw() method.

Corruption occurs at random by the processing of up to call the XmlWriter.WriteRaw() method.
The corrupted place will surely be replaced by "ed a0 bd ef bf bd".


In attached sample,
-Original text(hexcode) is 'f0  9f  98  aa  f0  9f  98 a5 f0  9f  98  b0'.
-Result text(hexcode) is 'f0  9f  98  aa  ed  a0  bd  ef  bf  bd  f0  9f  98  b0'.

original.txt(22):
0000520    9e  f0  9f  98  92  f0  9f  98  8c  f0  9f  98  94  f0  9f  98
0000540    81  f0  9f  98  b3  f0  9f  98  9b  f0  9f  98  9d  f0  9f  98
0000560    9c  f0  9f  98  82  f0  9f  98  ad  f0  9f  98  aa  f0  9f  98
                                               ~~~~~~~~~~~~~~  ~~~~~~~~~~
0000600    a5  f0  9f  98  b0  f0  9f  98  85  f0  9f  98  93  f0  9f  98
           ~~

result.txt(68)
0002060    98  9b  f0  9f  98  9d  f0  9f  98  9c  f0  9f  98  82  f0  9f
0002100    98  ad  f0  9f  98  aa  ed  a0  bd  ef  bf  bd  f0  9f  98  b0
                   ~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~
0002120    f0  9f  98  85  f0  9f  98  93  f0  9f  98  a9  f0  9f  98  ab
Comment 1 Ryoji.Ishikawa 2014-10-27 01:38:02 UTC
iOS7.1.2 and iOS8.0.2, 8.1 has this issue.
Comment 2 Atsushi Eno 2015-03-17 16:32:30 UTC
Now our XmlWriter is based on referencesource so it should work as .NET does.

[Cannot add this non-minimal repro.]