Text   |  XML   |  ReML   |   Visible Warnings:

Buffer Underrun  at packet-bthci_evt.c:654

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

dissect_bthci_evt_cod

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-bthci_evt.c)expand/collapse
Show more  
 627  dissect_bthci_evt_cod(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree)
 628  {
 629          guint8 cod1, cod2;
 630          proto_item *item;
 631   
 632          item = proto_tree_add_item(tree, hf_bthci_evt_class_of_device, tvb, offset, 3, TRUE);
 633   
 634          cod1 = tvb_get_guint8(tvb, offset+1);
 635          cod2 = tvb_get_guint8(tvb, offset+2);
 636   
 637          if( (cod2 != 0) || (cod1 & 0x20) )
 638          {
 639                  char buf[128];
 640   
 641                  buf[0] = 0;
 642   
 643                  proto_item_append_text(item, " (%s - services:", val_to_str(cod1 & 0x1f, bthci_cmd_major_dev_class_vals, "???"));
 644                  if (cod2 & 0x80) g_strlcat(buf, " Information,", sizeof(buf));
 645                  if (cod2 & 0x40) g_strlcat(buf, " Telephony,", sizeof(buf));
 646                  if (cod2 & 0x20) g_strlcat(buf, " Audio,", sizeof(buf));
 647                  if (cod2 & 0x10) g_strlcat(buf, " Object transfer,", sizeof(buf));
 648                  if (cod2 & 0x08) g_strlcat(buf, " Capturing,", sizeof(buf));
 649                  if (cod2 & 0x04) g_strlcat(buf, " Rendering,", sizeof(buf));
 650                  if (cod2 & 0x02) g_strlcat(buf, " Networking,", sizeof(buf));
 651                  if (cod2 & 0x01) g_strlcat(buf, " Positioning,", sizeof(buf));
 652                  if (cod1 & 0x20) g_strlcat(buf, " Limited discoverable mode,", sizeof(buf));
 653   
 654                  buf[strlen(buf)-1] = 0; /* skip last comma */
Show more  




Change Warning 1963.32033 : Buffer Underrun

Priority:
State:
Finding:
Owner:
Note: