Legacy Issue Number: 4113
Source: hursley.ibm.com ( Simon Nash)
Section 188.8.131.52 of the CORBA 2.3 spec, which describes the CDR encoding
of strings, includes the following sentence in the first paragraph:
"Both the string length and contents include a terminating null."
It is not clear from this whether exactly one terminating null is required,
or whether more than one null can be included, with the string being terminated
by the first null.
Since IDL strings cannot include nulls (see 184.108.40.206: "OMG IDL defines the string
type string consisting of all possible 8-bit quantities except null"), any
additional nulls following the first terminating null cannot be part of the
string, and it therefore seems reasonable to ignore them.
Change the above sentence in section 220.127.116.11 to:
"Both the string length and contents include at least one terminating null."
Also make the same change to the corresponding sentence in the third paragraph
of section 18.104.22.168 describing GIOP 1.1 wide strings.
Reported: CORBA 2.4.1 — Fri, 8 Dec 2000 05:00 GMT
Disposition: Resolved — CORBA 2.5
To close with clarification revision
Updated: Fri, 6 Mar 2015 20:58 GMT
CORBA25 — Null termination of strings
- Key: CORBA25-45
- OMG Task Force: Core December 2000 RTF