Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-ranap.c:11684

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

dissect_sccp_ranap_heur

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ranap.c)expand/collapse
Show more  
 11659  dissect_sccp_ranap_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 11660  {
 11661      guint8 temp;
 11662          asn1_ctx_t asn1_ctx;
 11663          guint length;
 11664          int offset;
 11665   
 11666          asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
 11667   
 11668      /* Is it a ranap packet?
 11669       *
 11670       * 4th octet should be the length of the rest of the message.
 11671       * 2nd octet is the message-type e Z[0, 28]
 11672       * (obviously there must be at least four octets)
 11673       *
 11674       * If both hold true we'll assume its RANAP 
 11675       */
 11676   
 11677      #define LENGTH_OFFSET 3
 11678      #define MSG_TYPE_OFFSET 1
 11679      if (tvb_length(tvb) < 4) { return FALSE; }
 11680      /*if (tvb_get_guint8(tvb, LENGTH_OFFSET) != (tvb_length(tvb) - 4)) { return FALSE; }*/
 11681          /* Read the length NOTE offset in bits */
 11682[+]         offset = dissect_per_length_determinant(tvb, LENGTH_OFFSET<<3, &asn1_ctx, tree, -1, &length);
 11683          offset = offset>>3;
 11684          if (length!= (tvb_length(tvb) - offset)){
Show more  




Change Warning 3159.34632 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: