diff options
author | Michael Mann <mmann78@netscape.net> | 2017-01-30 23:18:51 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-01-31 06:34:40 +0000 |
commit | cc479321c387a8684248bf7dde969535f9ebcfad (patch) | |
tree | 4ff3db4a72fcb8a860c0312136d43878b10f4aef /epan/tvbuff.h | |
parent | 93e71032418045884280c7d081da2d6c0030985c (diff) | |
download | wireshark-cc479321c387a8684248bf7dde969535f9ebcfad.tar.gz |
Have tvb_format_text use wmem_packet_scope() memory.
It's only use is in dissectors or other tree creation APIs (where
packet scope is valid), so have it use format_text_wmem with
wmem_packet_scope().
Change-Id: I1f34e284a870c9844c6b27f4ae08a1e7efe54098
Reviewed-on: https://code.wireshark.org/review/19883
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h index 95cf6cc17b..e5835516fd 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -536,7 +536,8 @@ WS_DLL_PUBLIC gint tvb_strnlen(tvbuff_t *tvb, const gint offset, const guint maxlength); /** - * Format the data in the tvb from offset for size ... + * Format the data in the tvb from offset for size. Returned string is + * wmem packet_scoped so call must be in that scope. */ WS_DLL_PUBLIC gchar *tvb_format_text(tvbuff_t *tvb, const gint offset, const gint size); |