Text   |  XML   |  ReML   |   Visible Warnings:

Buffer Overrun  at value_string.c:61

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

dissect_tapa_discover_unknown_new_tlv

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-tapa.c)expand/collapse
Show more  
 223  dissect_tapa_discover_unknown_new_tlv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tapa_discover_tree, guint32 offset, gint remaining)
 224  {
 225          proto_item      *item;
 226          proto_tree      *tapa_discover_item_tree;
 227          guint8           item_type;
 228          gint             item_length;
 229          const gchar     *item_text;
 230          const gchar     *item_type_text;
 231          gboolean         is_ascii;
 232   
 233          while (remaining > 0) {
 234                  item_type = tvb_get_guint8(tvb, offset);
 235[+]                 item_type_text = val_to_str(item_type, tapa_discover_unknown_vals, "%d");
expand/collapse

val_to_str

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/value_string.c)expand/collapse
Show more  
 39  const gchar*
 40  val_to_str(guint32 val, const value_string *vs, const char *fmt) {
 41    const gchar *ret;
 42   
 43    g_assert(fmt != NULL);
 44   
 45[+]   ret = match_strval(val, vs);
expand/collapse

match_strval

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/value_string.c)expand/collapse
Show more  
 75  const gchar*
 76  match_strval(guint32 val, const value_string *vs) {
 77      gint ignore_me;
 78[+]     return match_strval_idx(val, vs, &ignore_me);
expand/collapse

match_strval_idx

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/value_string.c)expand/collapse
Show more  
 56  const gchar*
 57  match_strval_idx(guint32 val, const value_string *vs, gint *idx) {
 58    gint i = 0;
 59   
 60    if(vs) {
 61      while (vs[i].strptr) {
 62        if (vs[i].value == val) {
 63          *idx = i;
 64          return(vs[i].strptr);
 65        }
 66        i++;
Show more  
Show more  
Show more  
Show more  




Change Warning 3008.32106 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: