diff --git a/docs/stats-bundle.md b/docs/stats-bundle.md index fa3451855..17e9a346a 100644 --- a/docs/stats-bundle.md +++ b/docs/stats-bundle.md @@ -62,6 +62,12 @@ length), so ids can be added without a version bump. The version byte changes only when an existing id changes meaning. Only **non-zero** counters are sent; an absent counter is 0. Always sent for an admin: ids 32, 33, 34 (see below). +**A zero byte where a record key is expected ends the page.** Id 0 is never +used; the reply arrives padded with zeros to the cipher block (AES, 16 B -- +the companion hands the padding over too: 139 B of bundle came as 140 B, a +page 1 of 30 B as 44 B). A reader that takes `0x00` as a record with id 0 +reads past the data and fails the page. + ### Ids | id | name | value |