Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at packet-socks.c:414

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

socks_udp_dissector

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-socks.c)expand/collapse
Show more  
 374  socks_udp_dissector(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
 375   
 376  /* Conversation dissector called from UDP dissector. Decode and display */
 377  /* the socks header, the pass the rest of the data to the udp port      */
 378  /* decode routine to  handle the payload.                               */
 379   
 380          int offset = 0;
 381          guint32 *ptr;
 382          socks_hash_entry_t *hash_info;
 383          conversation_t *conversation;
 384          proto_tree      *socks_tree;
 385          proto_item      *ti;
 386   
 387          conversation = find_conversation( pinfo->fd->num, &pinfo->src, &pinfo->dst, pinfo->ptype,
 388[+]                 pinfo->srcport, pinfo->destport, 0);
 389   
 390          DISSECTOR_ASSERT( conversation);        /* should always find a conversation */
 391   
 392[+]         hash_info = conversation_get_proto_data(conversation, proto_socks);
 393   
 394[+]         if (check_col(pinfo->cinfo, COL_PROTOCOL))
 395                  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Socks");
 396   
 397[+]         if (check_col(pinfo->cinfo, COL_INFO))
 398                  col_add_fstr(pinfo->cinfo, COL_INFO, "Version: 5, UDP Associated packet");
 399   
 400          if ( tree) {
 401                  ti = proto_tree_add_protocol_format( tree, proto_socks, tvb,
 402                          offset, -1, "Socks" );
 403   
 404                  socks_tree = proto_item_add_subtree(ti, ett_socks);
 405   
 406                  proto_tree_add_text( socks_tree, tvb, offset, 2, "Reserved");
 407                  offset += 2;
 408   
 409                  proto_tree_add_text( socks_tree, tvb, offset, 1, "Fragment Number: %u", tvb_get_guint8(tvb, offset));
 410                  ++offset;
 411   
 412   
 413                  offset = display_address( tvb, offset, socks_tree);
 414                  hash_info->udp_remote_port = tvb_get_ntohs(tvb, offset);
Show more  




Change Warning 2989.33442 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: