Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at packet-irda.c:560

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

dissect_iap_request

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/irda/packet-irda.c)expand/collapse
Show more  
 516  static void dissect_iap_request(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root)
 517  {
 518      unsigned            offset = 0;
 519      guint8              op;
 520      guint8              clen = 0;
 521      guint8              alen = 0;
 522      guint8              src;
 523      address             srcaddr;
 524      address             destaddr;
 525      conversation_t*     conv;
 526      iap_conversation_t* iap_conv;
 527   
 528   
 529      if (tvb_length(tvb) == 0)
 530          return;
 531   
 532      /* Make entries in Protocol column on summary display */
 533[+]     if (check_col(pinfo->cinfo, COL_PROTOCOL))
 534          col_set_str(pinfo->cinfo, COL_PROTOCOL, "IAP");
 535   
 536      op = tvb_get_guint8(tvb, offset) & IAP_OP;
 537   
 538      switch (op)
 539      {
 540          case GET_VALUE_BY_CLASS:
 541              clen = MIN(tvb_get_guint8(tvb, offset + 1), 60);
 542              alen = MIN(tvb_get_guint8(tvb, offset + 1 + 1 + clen), 60);
 543   
 544              /* create conversation entry */
 545              src = pinfo->circuit_id ^ CMD_FRAME;
 546              srcaddr.type  = AT_NONE;
 547              srcaddr.len   = 1;
 548              srcaddr.data  = (guint8*)&src;
 549   
 550              destaddr.type = AT_NONE;
 551              destaddr.len  = 1;
 552              destaddr.data = (guint8*)&pinfo->circuit_id;
 553   
 554[+]             conv = find_conversation(pinfo->fd->num, &srcaddr, &destaddr, PT_NONE, pinfo->srcport, pinfo->destport, 0);
 555              if (conv)
 556              {
 557[+]                 iap_conv = (iap_conversation_t*)conversation_get_proto_data(conv, proto_iap);
 558                  while (1)
 559                  {
 560                      if (iap_conv->iap_query_frame == pinfo->fd->num)
Show more  




Change Warning 3723.32021 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: