Commit Graph
28 Commits
Author SHA1 Message Date
Onur Can Cakmak 1961a2e322 Add decimal support to XmlBinaryDictionaryReader 2011-05-13 14:11:55 -04:00
Peter Gerbrandt 707b30ed76 Implement support for QNameIndex (0xBC) in attribute nodes. 2011-03-09 13:59:15 +09:00
Miguel de Icaza b4e0414776 [670974] Use the underlying BaseStream to read bytes instead of trying to peek a character.
Peeking a character as it turns out is a really bad idea as it involves the encoder
to pull characters.   If the PeekChar happens to read a byte that is part of a
UTF8 string that needs more characters to process we would end up with the reported
crash.

Atsushi Enomoto tracked this down, and the fix is to use the binaryreader.BaseStream
to directly call into ReadByte and Read without ever probing with PeekChar ().   It
is not really possible to use BinaryReader.ReadByte since this one can throw on
end-of-buffer conditions instead of returning -1
2011-02-14 09:38:02 -05:00
Atsushi Eno 7977b08ae8 Use DateTime ToBinary() and FromBinary() for DateTime serialization. 2010-12-20 17:17:57 +09:00
Atsushi Eno b4b4b59a8f 2010-06-02 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : reset name in Reset().
	   Fixed bug #599479.

	* XmlObjectSerializerTest.cs : enable binary reader test for #601785.


svn path=/trunk/mcs/; revision=158317
2010-06-02 07:42:42 +00:00
Atsushi Eno ef654ad856 2009-12-22 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : slightly more descriptive errmsg.


svn path=/trunk/mcs/; revision=148832
2009-12-22 08:30:00 +00:00
Atsushi Eno 3844b994ec 2009-07-14 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : read false (0x84) and true (0x86).


svn path=/trunk/mcs/; revision=137836
2009-07-14 07:20:17 +00:00
Atsushi Eno 83edc6dd33 2009-06-05 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix GetAttribute() that returns
	  attributes from cache that are *not* in current element.


svn path=/trunk/mcs/; revision=135517
2009-06-05 12:41:56 +00:00
Atsushi Eno ab539b8623 2009-06-05 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : there was wrong reusage of nodes
	  when the node was at the top of the stack. It was added twice and
	  call to reset resulted in end element with empty names.

	* XmlBinaryDictionaryReaderTest.cs : verify that end element has
	  non-empty local name.


svn path=/trunk/mcs/; revision=135512
2009-06-05 11:51:35 +00:00
Atsushi Eno 148d3ddbf3 2009-05-23 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix regression on stream consumption
	  excess.


svn path=/trunk/mcs/; revision=134669
2009-05-25 07:44:29 +00:00
Atsushi Eno 6489cc1e3b 2009-05-22 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : ReadContentString() returned
	  doubled string result.


svn path=/trunk/mcs/; revision=134591
2009-05-22 10:16:39 +00:00
Atsushi Eno 65586c8d12 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : fix utf16 array on getting its
	  length. Report correct length (since BinaryReader is directly used
	  it makes no sense to incompletely keep track of position in Source).

	* XmlBinaryDictionaryReaderTest.cs : added test for utf16 chars.


svn path=/trunk/mcs/; revision=134388
2009-05-19 11:37:30 +00:00
Atsushi Eno b6bad18813 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : support reader quotas.


svn path=/trunk/mcs/; revision=134371
2009-05-19 08:20:48 +00:00
Atsushi Eno ee3747a1cf 2009-04-27 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : several fixes;
	  - Name property was always empty.
	  - Value property was always empty for attributes.
	  - TextIndex node type was not supported.
	  - node reset at Read() was incomplete.
	  - attribute Prefix for single character had wrong value.
	  - namespace nodes did not appear as attribute nodes.
	  - attribute value node must be always single. Another text node
	    means a text child of the element, not the following attr value.
	  tests will go in sys.servicemodel.


svn path=/trunk/mcs/; revision=132879
2009-04-28 18:44:40 +00:00
Atsushi Eno a7ab985979 2009-04-01 Atsushi Enomoto <[email protected]>
* UniqueId.cs : add missing security attributes.
        * XmlDictionaryReader.cs : cleanup extra TODOs.
        * XmlBinaryDictionaryReader.cs : iplement IsArray.


svn path=/trunk/mcs/; revision=130732
2009-04-01 08:11:07 +00:00
Atsushi Eno b739f433af 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlDictionaryWriter.cs :
	  a couple of fixes to reflect correct values for node properties
	  on each read step.

	* XmlBinaryDictionaryReaderTest.cs: make tests more doubtful on
	  state.


svn path=/trunk/mcs/; revision=130655
2009-03-31 14:17:05 +00:00
Atsushi Eno 412021f75a 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs :
	  support array operation (0x03) on reader too.

	* XmlBinaryDictionaryReaderTest.cs: test array reader.


svn path=/trunk/mcs/; revision=130644
2009-03-31 11:33:34 +00:00
Atsushi Eno 525fe83335 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : removed lots of unused part.


svn path=/trunk/mcs/; revision=130635
2009-03-31 10:34:42 +00:00
Atsushi Eno 6110c12288 2009-03-31 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs
	  XmlBinaryFormat.cs : implemented element with short prefix.

	* XmlBinaryDictionaryReaderTest.cs,
	  XmlBinaryDictionaryWriterTest.cs : added test for element with
	  short prefix.


svn path=/trunk/mcs/; revision=130617
2009-03-31 07:24:52 +00:00
Atsushi Eno d6b718ad37 2009-03-27 Atsushi Enomoto <[email protected]>
* XmlBinaryFormat.cs, XmlBinaryDictionaryReader.cs,
	  XmlBinaryDictionaryWriter.cs : improved shorthanded prefix
	  support. Not only autocreated prefixes but also explicitly-
	  specified 'a' .. 'z' prefixes are mapped as shorthand.
	  Some significant (and ongoing) namespace support changes.

	* XmlBinaryDictionaryWriterTest.cs: added test for shorthand
	  prefixed attributes.


svn path=/trunk/mcs/; revision=130381
2009-03-27 13:20:47 +00:00
Atsushi Eno a730c50bc0 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs :
	  handle utf16 typed nodes. (not sure if it is used in writer.)


svn path=/trunk/mcs/; revision=130281
2009-03-26 11:35:32 +00:00
Atsushi Eno b41232c057 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs, XmlBinaryDictionaryReader.cs,
	  XmlBinaryFormat.cs, : reverted Uuid change (UniqueId is different).
	  Updated TODO status. Removed extra BinaryReader type.


svn path=/trunk/mcs/; revision=130279
2009-03-26 10:55:51 +00:00
Atsushi Eno f9c37f5f72 2009-03-26 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs,
	  XmlBinaryFormat.cs : fixed couple of issues regarding text and
	  base64 fixed-length buffers (their sizes are not variant).
	  Some ongoing changes on reading dummy-prefixed attributes.


svn path=/trunk/mcs/; revision=130278
2009-03-26 10:30:43 +00:00
Atsushi Eno c20202ef7c 2009-03-25 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs,
	  XmlBinaryDictionaryWriter.cs : couple of enhancements to support
	  missing types, Dictionary string lookups and indexing fixes.
	  Also reflect some correction by [MC-NBFX] (MS OSPed document).
	* XmlBinaryReaderSession.cs : implemented.

	* XmlBinaryDictionaryReaderTest.cs : enable reader-session dependent
	  tests.
	* XmlBinaryDictionaryReaderTest.cs : enable dummy-prefixed attributes
	  tests.


svn path=/trunk/mcs/; revision=130231
2009-03-25 18:48:24 +00:00
Chris Toshok 53fd125cbe In System.Runtime.Serialization/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs: 2.1
	has HasValue.

In System.XML/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
	EntityResolvingXmlReader.cs: 2.1 has HasValue.


In System.XML/Mono.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* SubtreeXmlReader.cs, XmlFilterReader.cs: 2.1 has HasValue.

In System.Xml.Linq/System.Xml.Linq:
2009-03-02  Chris Toshok  <[email protected]>

	* XNodeReader.cs: 2.1 has HasValue.

In System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-03-02  Chris Toshok  <[email protected]>

	* JsonReader.cs: 2.1 has HasValue.


svn path=/trunk/mcs/; revision=128406
2009-03-03 00:44:33 +00:00
Geoff Norton 2ad30c4516 2009-02-19 Geoff Norton <[email protected]>
* Fix the build, these all need to loose this #if guard.

svn path=/trunk/mcs/; revision=127378
2009-02-19 07:09:22 +00:00
Jb Evain 7fc2c6a4a9 in .:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* net_2_1_raw_System.Runtime.Serialization.dll.sources: new sources
	file for the SL2 profile.
	* Makefile: add support for SL2 profile.

in System.Xml.Schema:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* XmlSchema.cs: add helper internal class.

in System.Xml:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs:
	add support to build on the net_2_1 profile.

in System.Runtime.Serialization:
2008-09-09  Atsushi Enomoto  <[email protected]>
			Jb Evain  <[email protected]>

	* IDataContractSurrogater.cs, SerializationMap.cs:
	add support to build on the net_2_1 profile.


svn path=/trunk/mcs/; revision=112586
2008-09-09 13:34:57 +00:00
Jb Evain 8b9722d103 move to from olive to mcs
svn path=/trunk/mcs/; revision=111184
2008-08-20 21:22:38 +00:00