Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-giop.c:4557

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

decode_TaggedProfile

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-giop.c)expand/collapse
Show more  
 4542  static void decode_TaggedProfile(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset,
 4543                                   guint32 boundary, gboolean stream_is_big_endian, gchar *repobuf) {
 4544   
 4545    guint32 seqlen_pd;            /* sequence length of profile data */
 4546   
 4547    guint32 pidtag;               /* profile ID TAG */
 4548   
 4549    gchar *profile_data;          /* profile_data pointer */
 4550    gchar *p_profile_data;        /* printable profile_data pointer */
 4551   
 4552    guint32 new_boundary;         /* for encapsulations encountered */
 4553    gboolean new_big_endianness;  /* for encapsulations encountered */
 4554   
 4555    /* Get ProfileId tag */
 4556   
 4557    pidtag = get_CDR_ulong(tvb,offset,stream_is_big_endian,boundary);
 4558   
 4559    if (tree) {
 4560      proto_tree_add_uint(tree,hf_giop_profile_id,tvb,
 4561                          *offset-sizeof(pidtag),4,pidtag);
 4562    }
 4563   
 4564    /* get sequence length, new endianness and boundary for encapsulation */
 4565   
 4566    seqlen_pd = get_CDR_encap_info(tvb, tree, offset,
 4567                                   stream_is_big_endian, boundary,
 4568                                   &new_big_endianness, &new_boundary);
 4569   
 4570    /* return if zero length sequence */
 4571   
 4572    if(seqlen_pd == 0)
 4573      return;
 4574   
 4575   
 4576    /*
 4577     * Lets see what kind of TAG it is. If TAG_INTERNET_IOP then 
 4578     * decode it, otherwise just dump the octet sequence
 4579     *
 4580     * also, store IOR in our objectkey hash
 4581     *
 4582     * TODO - handle other TAGS 
 4583     */
 4584   
 4585    switch(pidtag) {
 4586    case IOP_TAG_INTERNET_IOP:
 4587   
 4588      decode_IIOP_IOR_profile(tvb, pinfo, tree, offset, new_boundary, new_big_endianness, repobuf, TRUE);
 4589      break;
 4590   
 4591    default:
 4592   
 4593      /* fetch all octets in this sequence , but skip endianness */
 4594   
 4595      get_CDR_octet_seq(tvb, &profile_data, offset, seqlen_pd -1);
 4596   
 4597      /* Make a printable string */
 4598   
 4599      p_profile_data = make_printable_string( profile_data, seqlen_pd -1);
 4600   
 4601      if(tree) {
 4602        proto_tree_add_text (tree, tvb, *offset -seqlen_pd + 1, seqlen_pd - 1,
 4603                             "Profile Data: %s", p_profile_data);
 4604      }
 4605   
 4606      g_free(p_profile_data);
 4607   
 4608      g_free(profile_data);
 4609   
 4610      break;
 4611   
 4612    }
 4613   
 4614  }
Show more  




Change Warning 12516.35631 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: