Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-multipart.c:631

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

process_body_part

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-multipart.c)expand/collapse
Show more  
 588  process_body_part(proto_tree *tree, tvbuff_t *tvb, const guint8 *boundary,
 589                  gint boundary_len, packet_info *pinfo, gint start,
 590                  gboolean *last_boundary)
 591  {
 592          proto_tree *subtree = NULL;
 593          proto_item *ti = NULL;
 594          gint offset = start, next_offset = 0;
 595          char *parameters = NULL;
 596          gint body_start, boundary_start, boundary_line_len;
 597   
 598          char *content_type_str = NULL;
 599          char *content_encoding_str = NULL;
 600          char *filename = NULL;
 601          char *typename = NULL;
 602          int  len = 0;
 603          gboolean last_field = FALSE;
 604   
 605          if (tree) {
 606                  ti = proto_tree_add_item(tree, hf_multipart_part, tvb, start, 0, FALSE);
 607                  subtree = proto_item_add_subtree(ti, ett_multipart_body);
 608          }
 609          /*
 610           * Process the MIME-part-headers
 611           */
 612   
 613          while (!last_field)
 614          {
 615                  gint colon_offset;
 616                  char *hdr_str;
 617                  char *header_str;
 618   
 619                  /* Look for the end of the header (denoted by cr)  
 620                   * 3:d argument to imf_find_field_end() maxlen; must be last offset in the tvb.
 621                   */
 622[+]                 next_offset = imf_find_field_end(tvb, offset, tvb_length_remaining(tvb, offset)+offset, &last_field);
 623                  /* If cr not found, won't have advanced - get out to avoid infinite loop! */
 624                  if (next_offset == offset) {
 625                          break;
 626                  }
 627   
 628                  hdr_str = tvb_get_ephemeral_string(tvb, offset, next_offset - offset);
 629   
 630[+]                 header_str = unfold_and_compact_mime_header(hdr_str, &colon_offset);
 631                  if (colon_offset <= 0) {
Show more  




Change Warning 2770.32210 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: