Skip to content
Tcl Source Code Artifact [ed9c974817]
Login

Artifact [ed9c974817]

Artifact ed9c97481709094e2501ca26bea6fad0f433bee2b639e57192aeb9bcb81da5c9:


000668c3a96c6c6f07
héllo 7
consumed 9
1: type binary sizeof?: the size depends on the data (str)
03000100020203
{1 2 515}
{}
090003616263
9 3 abc
1: type binary: field data of tlv holds 3, but the field it depends on says 4 ($len)
1: type binary: data truncated at offset 3 reading field data of tlv (needs 5 bytes, got 2)
04616263
4 abc
020102000309
2 {258 3} 9
1: string(raw,$len) uses $len, which is not a field read before it (in this product or an enclosing one)
010304ff
1 {3 4} 255 corps($tag).1 3
2 hi 255 corps($tag).2
3 {10 11} 255 corps($tag).1
1: type binary: tag 7 of field body of paquet matches no variant of corps($tag)
1: type binary: selector tag is 2 but field body of paquet holds variant 1 of corps($tag)
product paquet {{tag {uint 1 auto} 0} {body {tagged tag {{1 {product pp {{x {uint 1 auto} 0} {y {uint 1 auto} 0}}}} {3 {array {prefix {uint 1 auto}} {uint 1 auto}}} {2 {cstring utf-8}}} {corps($tag)}} 0} {end {uint 1 auto} 1}}
0000000a0003ff000000000100020003
10 3 {1 2 3} 255
consumed 7
10 3 {1 2 3} 255
position 9
1: type binary sizeof?: the size depends on the data (at)
010378797a
{1 3} xyz
1: string: a prefix must be an unsigned integer type, not int(s,8)
1: string: a prefix must be an unsigned integer type, not double(32)
1: string: "$" must be followed by a field name in "$"
1: at(...) needs the type of the value: write at(4).T
1: "sz" has a literal alternative: only a sum whose variants all carry a value can be chosen by a field
1: int takes (u|s, bits ?, be|le?), for example int(u,16,be)