Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-dcerpc.c:4204

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

dissect_dcerpc_cn_bs_body

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc.c)expand/collapse
Show more  
 4149  dissect_dcerpc_cn_bs_body (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 4150  {
 4151      volatile int offset = 0;
 4152      int pdu_len;
 4153      volatile gboolean dcerpc_pdus = 0;
 4154      volatile gboolean ret = FALSE;
 4155   
 4156      /*
 4157       * There may be multiple PDUs per transport packet; keep 
 4158       * processing them.
 4159       */
 4160[+]     while (tvb_reported_length_remaining(tvb, offset) != 0) {
 4161          /*
 4162           * Catch ReportedBoundsError, so that even if the stub data is bad,
 4163           * we don't abort the full DCE RPC dissection - there might be more
 4164           * than one DCE RPC PDU in the data being dissected.
 4165           *
 4166           * If we get BoundsError, it means the frame was cut short by a 
 4167           * snapshot length, so there's nothing more to dissect; just 
 4168           * re-throw that exception.
 4169           */
 4170          TRY {
 4171              pdu_len = 0;
 4172              if(dissect_dcerpc_cn (tvb, offset, pinfo, tree,
 4173                  dcerpc_cn_desegment, &pdu_len)) {
 4174                  dcerpc_pdus++;
 4175              }
 4176          } CATCH(BoundsError) {
 4177              RETHROW;
 4178          } CATCH(ReportedBoundsError) {
 4179              show_reported_bounds_error(tvb, pinfo, tree);
 4180              /*
 4181               * Presumably it looked enough like a DCE RPC PDU that we 
 4182               * dissected enough of it to throw an exception.
 4183               */
 4184              dcerpc_pdus++;
 4185          } ENDTRY;
 4186   
 4187          if (!dcerpc_pdus) {
 4188              /*
 4189               * Not a DCERPC PDU.
 4190               */
 4191              break;
 4192          }
 4193   
 4194          /*
 4195           * Well, we've seen at least one DCERPC PDU.
 4196           */
 4197          ret = TRUE;
 4198   
 4199          /* if we had more than one Req/Resp in this PDU change the protocol column */
 4200          /* this will formerly contain the last interface name, which may not be the same for all Req/Resp */
 4201          if (dcerpc_pdus >= 2 && check_col (pinfo->cinfo, COL_PROTOCOL))
 4202              col_add_fstr(pinfo->cinfo, COL_PROTOCOL, "%u*DCERPC", dcerpc_pdus);
 4203   
 4204          if (pdu_len == 0) {
Show more  




Change Warning 2179.34814 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: