diff options
author | John Thacker <johnthacker@gmail.com> | 2022-10-24 08:30:54 -0400 |
---|---|---|
committer | A Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2022-10-24 13:25:24 +0000 |
commit | 0647fc5f238f642212a0a058b45a315242cb5a45 (patch) | |
tree | a0d4fc33c9621a2522ffd610b04364fd2e236f93 /epan/tvbuff.c | |
parent | 4de19bf8668368f84e07f2fe39aee37b5e2e3166 (diff) |
SCTP: Fix host name address parameter
The deprecated Host Name Address Parameter, RFC 9260 3.3.2.1.4:
"At least one null terminator is included in the Host Name string
and MUST be included in the length."
That makes it a string which is both counted and null-terminated,
which is a FT_STRINGZ. Return the string as obtained rather than
formatting it a second time. Don't pass in a width as a format specifier,
because the length of the UTF-8 string is not necessarily the length
in octets, if replacement characters or escaping was used.
Fix #18534.
Diffstat (limited to 'epan/tvbuff.c')
0 files changed, 0 insertions, 0 deletions