diff options
author | Michael Mann <mmann78@netscape.net> | 2017-07-08 22:46:52 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-07-09 19:54:35 +0000 |
commit | c2ebb62e7e2adca72b932276102ee0a293b9a4ff (patch) | |
tree | a793883e1b49caf742fafbbb57001d7b0bbac13f /epan/to_str.h | |
parent | ffb8bbd37227f466d228f20ae30b87504d4e1760 (diff) |
Don't use uint_to_str_back when you need guint32_to_str_buf.
It will end up eventually crashing column buffers because memory
behind the address is trounced.
Change-Id: Id6b5a42effc503e4b8bf5e1deb2135241e2893f3
Reviewed-on: https://code.wireshark.org/review/22563
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/to_str.h')
-rw-r--r-- | epan/to_str.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/to_str.h b/epan/to_str.h index 8d53ee9141..3fa71f2f52 100644 --- a/epan/to_str.h +++ b/epan/to_str.h @@ -109,8 +109,8 @@ WS_DLL_PUBLIC gchar* signed_time_secs_to_str(wmem_allocator_t *scope, const gint WS_DLL_PUBLIC gchar* unsigned_time_secs_to_str(wmem_allocator_t *scope, const guint32); WS_DLL_PUBLIC gchar* signed_time_msecs_to_str(wmem_allocator_t *scope, gint32 time_val); -extern void guint32_to_str_buf(guint32 u, gchar *buf, int buf_len); -extern void guint64_to_str_buf(guint64 u, gchar *buf, int buf_len); +WS_DLL_PUBLIC void guint32_to_str_buf(guint32 u, gchar *buf, int buf_len); +WS_DLL_PUBLIC void guint64_to_str_buf(guint64 u, gchar *buf, int buf_len); WS_DLL_PUBLIC gchar* rel_time_to_str(wmem_allocator_t *scope, const nstime_t*); WS_DLL_PUBLIC gchar* rel_time_to_secs_str(wmem_allocator_t *scope, const nstime_t*); |