diff options
author | Guy Harris <gharris@sonic.net> | 2020-08-19 23:58:20 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-08-20 07:24:32 +0000 |
commit | 35418a73f7c9cefebe392b1ea0f012fccaf89801 (patch) | |
tree | f6ce6ac12a3fcc952b484455468790b8a79cd7e8 /debian | |
parent | 06ff18fbb45fbf37feb3a3fcf0e22eebfa979079 (diff) |
Add format_text_string(), which gets the length with strlen().
format_text(alloc, string, strlen(string)) is a common idiom; provide
format_text_string(), which does the strlen(string) for you. (Any
string used in a %s to set the text of a protocol tree item, if it was
directly extracted from the packet, should be run through a format_text
routine, to ensure that it's valid UTF-8 and that control characters are
handled correctly.)
Update comments while we're at it.
Change-Id: Ia8549efa1c96510ffce97178ed4ff7be4b02eb6e
Reviewed-on: https://code.wireshark.org/review/38202
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
Diffstat (limited to 'debian')
-rw-r--r-- | debian/libwireshark0.symbols | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/libwireshark0.symbols b/debian/libwireshark0.symbols index 555ac965af..b09d6cbf57 100644 --- a/debian/libwireshark0.symbols +++ b/debian/libwireshark0.symbols @@ -663,6 +663,7 @@ libwireshark.so.0 libwireshark0 #MINVER# format_size_wmem@Base 3.3.0 format_text@Base 1.9.1 format_text_chr@Base 1.12.0~rc1 + format_text_string@Base 3.3.0 format_text_wsp@Base 1.9.1 format_uri@Base 1.9.1 fragment_add@Base 1.9.1 |