Skip to contentSkip to conversation

Docs: proto.md: Clarify NUL in export name

PATCH Applied Alex Bligh 2 participants 2 messages Mar 31, 2016 – Apr 1, 2016

lore
Share & tools
lore

Alex Bligh

author
#0 lore raw

PATCH 1/1 Docs: proto.md: Clarify NUL in export name

Clarify that

* The name is not NUL terminated (not just that the length 'does not include NUL termination' which might be taken to mean there is NUL termination but the length doesn't include it.

* The name cannot itself include embedded NUL characters (despite it not being NUL terminated).

---
 doc/proto.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
doc/proto.md +2 -1
index c1e05c5..7729051 100644
@@ -292,7 +292,8 @@ of the newstyle negotiation.
     haggling, and proceed to the transmission phase. Data: name of the
     export, free-form UTF-8 text (subject to limitations by server
     implementation). The length of the name is determined from the
-    option header, and does NOT include a NUL terminator.  If the
+    option header. The name is not NUL terminated, and may not
+    contain embedded NUL characters. If the
     chosen export does not exist or requirements for the chosen export
     are not met (e.g., the client did not negotiate TLS for an export
     where the server requires it), the server should close the
Signature · 1 line
1.9.1
#1 lore raw

Thanks, applied.

Quoted 43 lines · Alex Bligh

Clarify that

* The name is not NUL terminated (not just that the length 'does not include NUL termination' which might be taken to mean there is NUL termination but the length doesn't include it.

* The name cannot itself include embedded NUL characters (despite it not being NUL terminated).

---
 doc/proto.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
doc/proto.md +2 -1
index c1e05c5..7729051 100644
@@ -292,7 +292,8 @@ of the newstyle negotiation.
     haggling, and proceed to the transmission phase. Data: name of the
     export, free-form UTF-8 text (subject to limitations by server
     implementation). The length of the name is determined from the
-    option header, and does NOT include a NUL terminator.  If the
+    option header. The name is not NUL terminated, and may not
+    contain embedded NUL characters. If the
     chosen export does not exist or requirements for the chosen export
     are not met (e.g., the client did not negotiate TLS for an export
     where the server requires it), the server should close the
Signature · 13 lines
1.9.1


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Nbd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nbd-general
Signature · 4 lines
< ron> I mean, the main *practical* problem with C++, is there's like a dozen
       people in the world who think they really understand all of its rules,
       and pretty much all of them are just lying to themselves too.
 -- #debian-devel, OFTC, 2016-02-12