diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-02-12 14:32:12 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-02-12 15:19:03 +0000 |
commit | ef21740e25f6e9c759852844fec8507e8c80f4dd (patch) | |
tree | 5c6f863b06f65b3cefcabcc9be6d6da7e505d732 /plugins/gryphon/packet-gryphon.c | |
parent | 7594d96e7de9e01240075cca35dd793467495f94 (diff) | |
download | wireshark-ef21740e25f6e9c759852844fec8507e8c80f4dd.tar.gz wireshark-ef21740e25f6e9c759852844fec8507e8c80f4dd.tar.bz2 wireshark-ef21740e25f6e9c759852844fec8507e8c80f4dd.zip |
Gryphon: do not use col_set_str with non constant strings
Fixes an ASAN failure reported by Alexis
Change-Id: I68e5c55ec4090766ef5f003f44093ce3c268a82a
Reviewed-on: https://code.wireshark.org/review/7082
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'plugins/gryphon/packet-gryphon.c')
-rw-r--r-- | plugins/gryphon/packet-gryphon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gryphon/packet-gryphon.c b/plugins/gryphon/packet-gryphon.c index ad18e0ad07..ace9a2cd7b 100644 --- a/plugins/gryphon/packet-gryphon.c +++ b/plugins/gryphon/packet-gryphon.c @@ -829,7 +829,7 @@ dissect_gryphon_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, /* * Indicate what kind of message this is. */ - col_set_str(pinfo->cinfo, COL_INFO, val_to_str(frmtyp, frame_type, "- Invalid -")); + col_set_str(pinfo->cinfo, COL_INFO, val_to_str_const(frmtyp, frame_type, "- Invalid -")); } if (tree == NULL) |