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_ff_msg_hdr_srv

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ff.c)expand/collapse
Show more  
 13165  dissect_ff_msg_hdr_srv(tvbuff_t *tvb,
 13166          gint offset, proto_tree *tree, guint8 proto_and_type, guint8 service)
 13167  {
 13168          proto_tree *sub_tree    = NULL;
 13169          proto_item *ti  = NULL;
 13170   
 13171          if(!tree) {
 13172                  return;
 13173          }
 13174   
 13175[+]         ti = proto_tree_add_text(tree, tvb, offset, 1, "Service: 0x%02x", service);
 13176          sub_tree = proto_item_add_subtree(ti, ett_ff_fda_msg_hdr_srv);
 13177   
 13178          if(!sub_tree) {
 13179                  return;
 13180          }
 13181   
 13182          /* Bit 8: Confirmed Flag */
 13183          proto_tree_add_text(sub_tree, tvb, offset, 1, "%s (%u)",
 13184                  decode_boolean_bitfield(service, SERVICE_CONFIRMED_FLAG_MASK, 8,
 13185                          "Confirmed Flag: Confirmed",
 13186                          "Confirmed Flag: Unconfirmed"),
 13187                  (service & SERVICE_CONFIRMED_FLAG_MASK) >> 7);
 13188   
 13189          /* Bits 1-7 Service Id of the service */
 13190          switch(proto_and_type & PROTOCOL_MASK) {
 13191                  case PROTOCOL_FDA:
 13192                          if(service & SERVICE_CONFIRMED_FLAG_MASK) {
 13193                                  proto_tree_add_text(sub_tree, tvb, offset, 1, "%s (%u)",
 13194                                          decode_enumerated_bitfield(service,
 13195                                                  SERVICE_SERVICE_ID_MASK, 8,
 13196                                                  names_fda_confirmed, "Service Id: %s"),
 13197                                          service & SERVICE_SERVICE_ID_MASK);
 13198                          } else {
 13199                                  proto_tree_add_text(sub_tree, tvb, offset, 1, "%s (%u)",
 13200                                          decode_enumerated_bitfield(service,
 13201                                                  SERVICE_SERVICE_ID_MASK, 8,
 13202[+]                                                 names_fda_unconfirmed, "Service Id: %s"),
expand/collapse

decode_enumerated_bitfield

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/value_string.c)expand/collapse
Show more  
 128  const char *
 129  decode_enumerated_bitfield(guint32 val, guint32 mask, int width,
 130      const value_string *tab, const char *fmt)
 131  {
 132    static char buf[1025];
 133    char *p;
 134   
 135    p = decode_bitfield_value(buf, val, mask, width);
 136[+]   g_snprintf(p, (gulong) (1024-(p-buf)), fmt, val_to_str(val & mask, tab, "Unknown"));
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  
 13203                                          service & SERVICE_SERVICE_ID_MASK);
Show more  




Change Warning 2351.31073 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: