Text   |  XML   |  ReML   |   Visible Warnings:

Buffer Underrun  at packet-wmx.c:758

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

add_protocol_subtree

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/wimax/packet-wmx.c)expand/collapse
Show more  
 728  proto_tree *add_protocol_subtree(tlv_info_t *this, gint idx, proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const char *format, ...)
 729  {
 730          /* Declare local variables */
 731          proto_tree *tlv_tree;
 732          proto_item *tlv_item;
 733          guint start_of_tlv;
 734          gint tlv_value_length, tlv_val_offset;
 735          guint8 size_of_tlv_length_field;
 736          guint8 tlv_type;
 737          guint32 tlv_value;
 738          va_list ap; /* points to each unnamed arg in turn */
 739          gchar *message = NULL;
 740          gchar *hex_fmt;
 741   
 742          /* Retrieve the necessary TLV information */
 743          tlv_val_offset = get_tlv_value_offset(this);
 744          start_of_tlv = start - tlv_val_offset;
 745          tlv_value_length = get_tlv_length(this);
 746          size_of_tlv_length_field = get_tlv_size_of_length(this);
 747[+]         tlv_type = get_tlv_type(this);
 748   
 749          /* display the TLV name and display the value in hex. Highlight type, length, and value. */
 750          va_start(ap, format);
 751          message = se_strdup_vprintf(format, ap);
 752          va_end(ap);
 753          tlv_item = proto_tree_add_protocol_format(tree, hfindex, tvb, start, length, "%s", message);
 754          /* Correct the highlighting. */
 755          tlv_item->finfo->start -= tlv_val_offset;
 756          tlv_item->finfo->length += tlv_val_offset;
 757          /* add TLV subtree to contain the type, length, and value */
 758          tlv_tree = proto_item_add_subtree(tlv_item, *ett_tlv[tlv_type]);
Show more  




Change Warning 3897.31183 : Buffer Underrun

Priority:
State:
Finding:
Owner:
Note: