Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-wsp.c:3609

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

wkh_profile_warning

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-wsp.c)expand/collapse
Show more  
 3581  wkh_profile_warning(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_info *pinfo _U_)
 3582  {
 3583          wkh_0_Declarations;
 3584          guint32 off, len, val = 0;
 3585          nstime_t tv;
 3586          guint8 warn_code;
 3587          gchar *str;
 3588   
 3589          wkh_1_WellKnownValue;
 3590                  val = val_id & 0x7F;
 3591                  val_str = match_strval(val, vals_wsp_profile_warning_code);
 3592                  if (val_str) {
 3593                          tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start);
 3594                          ti = proto_tree_add_string(tree, hf_hdr_profile_warning,
 3595                                          tvb, hdr_start, offset - hdr_start, val_str);
 3596                          ok = TRUE;
 3597                  }
 3598          wkh_2_TextualValue;
 3599                  /* Invalid */
 3600          wkh_3_ValueWithLength;
 3601                  off = val_start + val_len_len;
 3602                  warn_code = tvb_get_guint8(tvb, off++);
 3603                  if (warn_code & 0x80) { /* Well known warn code */
 3604                          val_str = match_strval(val, vals_wsp_profile_warning_code);
 3605                          if (val_str) { /* OK */
 3606                                  tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start);
 3607                                  ti = proto_tree_add_string(tree, hf_hdr_profile_warning,
 3608                                                  tvb, hdr_start, offset - hdr_start, val_str);
 3609                                  get_uri_value(str, tvb, off, len, ok);
 3610                                  if (ok) { /* Valid warn-target string */
 3611                                          off += len;
 3612                                          str = g_strdup_printf("; target=%s", val_str);
 3613                                          proto_item_append_string(ti, str);
 3614                                          g_free(str); /* proto_XXX creates a copy */
 3615                                          /* Add zero or more dates */
 3616                                          while (ok && (off < offset)) {
 3617                                                  get_date_value(val, tvb, off, len, ok);
 3618                                                  if (ok) { /* Valid warn-text string */
 3619                                                          off += len;
 3620                                                          tv.secs = val;
 3621                                                          tv.nsecs = 0;
 3622                                                          val_str = abs_time_to_str(&tv);
 3623                                                          str = g_strdup_printf("; date=%s", val_str);
 3624                                                          proto_item_append_string(ti, str);
 3625                                                          g_free(str); /* proto_XXX creates a copy */
 3626                                                          /* BEHOLD: do NOT try to free val_str, as this
 3627                                                           * generates a core dump!
 3628                                                           * It looks like abs_time_to_str() is 
 3629                                                           * buggy or works with static data. */
 3630                                                  }
 3631                                          }
 3632                                  }
 3633                          }
 3634                  }
 3635          wkh_4_End(hf_hdr_profile_warning);
 3636  }
Show more  




Change Warning 5470.35692 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: