Text   |  XML   |  ReML   |   Visible Warnings:

Cast Alters Value  at packet-snmp.c:2786

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

dissect_snmp

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-snmp.c)expand/collapse
Show more  
 2760  dissect_snmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 2761  {
 2762          conversation_t  *conversation;
 2763          int offset;
 2764          gint8 tmp_class;
 2765          gboolean tmp_pc;
 2766          gint32 tmp_tag;
 2767          guint32 tmp_length;
 2768          gboolean tmp_ind;
 2769   
 2770          /*
 2771           * See if this looks like SNMP or not. if not, return 0 so 
 2772           * wireshark can try som other dissector instead.
 2773           */
 2774          /* All SNMP packets are BER encoded and consist of a SEQUENCE 
 2775           * that spans the entire PDU. The first item is an INTEGER that 
 2776           * has the values 0-2 (version 1-3).
 2777           * if not it is not snmp.
 2778           */
 2779          /* SNMP starts with a SEQUENCE */
 2780[+]         offset = get_ber_identifier(tvb, 0, &tmp_class, &tmp_pc, &tmp_tag);
 2781          if((tmp_class!=BER_CLASS_UNI)||(tmp_tag!=BER_UNI_TAG_SEQUENCE)){
 2782                  return 0;
 2783          }
 2784          /* then comes a length which spans the rest of the tvb */
 2785          offset = get_ber_length(tvb, offset, &tmp_length, &tmp_ind);
 2786[+]         if(tmp_length!=(guint32)tvb_reported_length_remaining(tvb, offset)){
Show more  




Change Warning 1644.35213 : Cast Alters Value

Priority:
State:
Finding:
Owner:
Note: