Commit 9787950
committed
fix(datastreams): correct varint encoding when a group shifts down to 0x80
encodeVarintInto exited its 7-bit loop while the remaining value was still 0x80
and then masked the continuation bit off the final byte, dropping that bit. Every
value whose zig-zag form shifts down to exactly 0x80 encoded as a truncated
number: 64, then a band of 2 ** (exponent - 7) values above every seventh power
of two. Pathway contexts carry millisecond epoch timestamps, which enter the next
affected band on 2039-09-07 and leave it on 2040-03-24.1 parent ae08daf commit 9787950
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
56 | 75 | | |
57 | 76 | | |
58 | 77 | | |
| |||
0 commit comments