Wireshark-bugs: [Wireshark-bugs] [Bug 13073] s7comm.blockinfo.blocktype JSON output format value
Comment # 1
on bug 13073
from Guy Harris
The block type string consists of an ASCII SOH character (with the code 0x01)
followed by an ASCII NUL character (with the code 0x00).
RFC 7159, "The _javascript_ Object Notation (JSON) Data Interchange Format",
section 7:
https://tools.ietf.org/html/rfc7159#section-7
says:
7. Strings
The representation of strings is similar to conventions used in the C
family of programming languages. A string begins and ends with
quotation marks. All Unicode characters may be placed within the
quotation marks, except for the characters that must be escaped:
quotation mark, reverse solidus, and the control characters (U+0000
through U+001F).
Any character may be escaped. If the character is in the Basic
Multilingual Plane (U+0000 through U+FFFF), then it may be
represented as a six-character sequence: a reverse solidus, followed
by the lowercase letter u, followed by four hexadecimal digits that
encode the character's code point. The hexadecimal letters A though
F can be upper or lower case. So, for example, a string containing
only a single reverse solidus character may be represented as
"\u005C".
So the correct representation for that value would be "\u0001", and the bug is
that we're only outputting 3 digits, not four digits.
You are receiving this mail because:
- You are watching all bug changes.