Commit ea89b50d authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #535 from zombiezen/canonicaloffset

Specify canonicalization rule for zero-sized struct pointers
parents b3411054 36fba611
......@@ -351,6 +351,7 @@ A canonical Cap'n Proto message must adhere to the following rules:
* Similarly, for a struct list, if a trailing word in a section of all structs in the list is zero,
then it must be truncated from all structs in the list. (All structs in a struct list must have
equal sizes, hence a trailing zero can only be removed if it is zero in all elements.)
* Any struct pointer pointing to a zero-sized struct should have an offset of -1.
* Canonical messages are not packed. However, packing can still be applied for transmission
purposes; the message must simply be unpacked before checking signatures.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment