Wireshark-bugs: [Wireshark-bugs] [Bug 8216] ASN.1 PER Encoding: UTF8String dissection

Date: Wed, 16 Jan 2013 22:17:25 +0000

changed bug 8216

What Removed Added
CC   [email protected]

Comment # 2 on bug 8216 from
According to X.680, UTF8String is supposed to be a restricted character string
type. But it is not referenced directly in X.691.
According to X.680 41.16:
"UTF8String is synonymous with UniversalString at the abstract level and can be
used wherever UniversalString is used (subject to rules requiring distinct
tags) but has a different tag and is a distinct type."
I'm not an ASN.1 expert, but I have the feeling that we should call
dissect_per_restricted_character_string_sorted instead of
dissect_per_octet_string. Otherwise it will violate ASN.1 alignment rules (like
for bug 6246).

Note that UniversalString is not supported either in packet-per.c.

@Ewgenij
Could you try using
dissect_per_restricted_character_string_sorted(tvb, offset, actx, tree,
hf_index, min_len, max_len, has_extension, NULL, 256, NULL);
instead of dissect_per_octet_string and see if it still works.
By the way, is your dissector using the PER aligned variant?

@Evan: currently no ASN.1 PER dissector (either aligned or unaligned variant)
available in Wireshark makes use of UTF8String type.


You are receiving this mail because:
  • You are watching all bug changes.