Text   |  XML   |  ReML   |   Visible Warnings:

Buffer Underrun  at packet-bthci_cmd.c:848

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

dissect_bthci_cmd_cod

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-bthci_cmd.c)expand/collapse
Show more  
 821  dissect_bthci_cmd_cod(int type, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree)
 822  {
 823          guint8 cod1, cod2;
 824          proto_item *item;
 825   
 826          item = proto_tree_add_item(tree, type, tvb, offset, 3, TRUE);
 827   
 828          cod1 = tvb_get_guint8(tvb, offset+1);
 829          cod2 = tvb_get_guint8(tvb, offset+2);
 830   
 831          if( (cod2 != 0) || (cod1 & 0x20) )
 832          {
 833                  char buf[128];
 834   
 835                  buf[0] = '\0';
 836   
 837                  proto_item_append_text(item, " (%s - services:", val_to_str(cod1 & 0x1f, bthci_cmd_major_dev_class_vals, "???"));
 838                  if (cod2 & 0x80) g_strlcat(buf, " Information,", sizeof(buf));
 839                  if (cod2 & 0x40) g_strlcat(buf, " Telephony,", sizeof(buf));
 840                  if (cod2 & 0x20) g_strlcat(buf, " Audio,", sizeof(buf));
 841                  if (cod2 & 0x10) g_strlcat(buf, " Object transfer,", sizeof(buf));
 842                  if (cod2 & 0x08) g_strlcat(buf, " Capturing,", sizeof(buf));
 843                  if (cod2 & 0x04) g_strlcat(buf, " Rendering,", sizeof(buf));
 844                  if (cod2 & 0x02) g_strlcat(buf, " Networking,", sizeof(buf));
 845                  if (cod2 & 0x01) g_strlcat(buf, " Positioning,", sizeof(buf));
 846                  if (cod1 & 0x20) g_strlcat(buf, " Limited discoverable mode,", sizeof(buf));
 847   
 848                  buf[strlen(buf)-1] = '\0'; /* skip last comma */
Show more  




Change Warning 1955.32032 : Buffer Underrun

Priority:
State:
Finding:
Owner:
Note: