Issue 5892: restriction of where a valuetype chunk can end (corba-rtf) Source: AT&T (Dr. Duncan Grisby, ) Nature: Revision Severity: Minor Summary: There is a small issue with the restriction of where a valuetype chunk can end. The spec says "The data may be split into multiple chunks at arbitrary points except within primitive CDR types, arrays of primitive types, strings, and wstrings, or between the tag and offset of indirections. It is never necessary to end a chunk within one of these types as the length of these types is known before starting to marshal them so they can be added to the length of the currently open chunk." However, in the case of array of wchar, the length is not known before starting to marshal, since each char (in GIOP 1.2 and 1.3) is marshalled as a (sort-of) sequence of octets. I think it should be legal to end a valuetype chunk in the middle of an array of char. Resolution: Revised Text: Actions taken: March 26, 2003: received issue April 11, 2012: Deferred Discussion: End of Annotations:===== From: webmaster@omg.org Date: 26 Mar 2003 05:51:34 -0500 To: Subject: Issue/Bug Report -------------------------------------------------------------------------------- Name: Duncan Grisby Company: Apasphere Ltd. mailFrom: duncan@grisby.org Notification: Yes Specification: CORBA 3.0.2 Section: 15 FormalNumber: formal/2002-12-02 Version: 3.0.2 RevisionDate: December 2002 Page: 15-20 Nature: Revision Severity: Minor HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 Description There is a small issue with the restriction of where a valuetype chunk can end. The spec says "The data may be split into multiple chunks at arbitrary points except within primitive CDR types, arrays of primitive types, strings, and wstrings, or between the tag and offset of indirections. It is never necessary to end a chunk within one of these types as the length of these types is known before starting to marshal them so they can be added to the length of the currently open chunk." However, in the case of array of wchar, the length is not known before starting to marshal, since each char (in GIOP 1.2 and 1.3) is marshalled as a (sort-of) sequence of octets. I think it should be legal to end a valuetype chunk in the middle of an array of char.