Text   |  XML   |  ReML   |   Visible Warnings:

Buffer Underrun  at packet-wmx.c:667

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

add_tlv_subtree

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/wimax/packet-wmx.c)expand/collapse
Show more  
 640  proto_tree *add_tlv_subtree(tlv_info_t *this, gint idx, proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, gboolean little_endian)
 641  {
 642          /* Declare local variables */
 643          proto_tree *tlv_tree;
 644          proto_item *tlv_item;
 645          guint start_of_tlv;
 646          gint tlv_value_length, tlv_val_offset;
 647          guint8 size_of_tlv_length_field;
 648          guint8 tlv_type;
 649          guint32 tlv_value;
 650          gchar *hex_fmt;
 651   
 652          UNREFERENCED_PARAMETER(length);
 653   
 654          /* Retrieve the necessary TLV information */
 655          tlv_val_offset = get_tlv_value_offset(this);
 656          start_of_tlv = start - tlv_val_offset;
 657          tlv_value_length = get_tlv_length(this);
 658          size_of_tlv_length_field = get_tlv_size_of_length(this);
 659[+]         tlv_type = get_tlv_type(this);
 660   
 661          /* display the TLV name and display the value in hex. Highlight type, length, and value. */
 662          tlv_item = proto_tree_add_item(tree, hfindex, tvb, start, tlv_value_length, little_endian);
 663          /* Correct the highlighting. */
 664          tlv_item->finfo->start -= tlv_val_offset;
 665          tlv_item->finfo->length += tlv_val_offset;
 666          /* add TLV subtree to contain the type, length, and value */
 667          tlv_tree = proto_item_add_subtree(tlv_item, *ett_tlv[tlv_type]);
Show more  




Change Warning 3895.31888 : Buffer Underrun

Priority:
State:
Finding:
Owner:
Note: