(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 5644 | | | static int SpoolssGetPrinterDriver2_q(tvbuff_t *tvb, int offset, |
| 5645 | | | packet_info *pinfo, proto_tree *tree, |
| 5646 | | | guint8 *drep) |
| 5647 | | | { |
| 5648 | | | dcerpc_info *di = (dcerpc_info *)pinfo->private_data; |
| 5649 | | | dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data; |
| 5650 | | | e_ctx_hnd policy_hnd; |
| 5651 | | | char *pol_name; |
| 5652 | | | guint32 level; |
| 5653 | | | |
| 5654 | | | |
| 5655 | | | |
| 5656 | | | offset = dissect_nt_policy_hnd( |
| 5657 | | | tvb, offset, pinfo, tree, drep, hf_hnd, &policy_hnd, NULL, |
| 5658 | | | FALSE, FALSE); |
| 5659 | | | |
| 5660 | | | dcerpc_fetch_polhnd_data(&policy_hnd, &pol_name, NULL, NULL, NULL, |
| 5661 | [+] | | pinfo->fd->num); |
 |
| 5662 | | | |
| 5663 | | | if (check_col(pinfo->cinfo, COL_INFO) && pol_name) |
Event 7:
Skipping " if". - check_col(...) evaluates to true.
- pol_name evaluates to false.
hide
|
|
| 5664 | | | col_append_fstr(pinfo->cinfo, COL_INFO, ", %s", |
| 5665 | | | pol_name); |
| 5666 | | | |
| 5667 | | | offset = dissect_ndr_str_pointer_item( |
| 5668 | | | tvb, offset, pinfo, tree, drep, NDR_POINTER_UNIQUE, |
| 5669 | | | "Architecture", hf_architecture, 0); |
| 5670 | | | |
| 5671 | | | offset = dissect_ndr_uint32( |
| 5672 | [+] | | tvb, offset, pinfo, tree, drep, hf_level, &level); |
Event 8:
dissect_ndr_uint32() does not initialize level. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 5673 | | | |
| 5674 | | | |
| 5675 | | | if(!pinfo->fd->flags.visited){ |
Event 10:
Skipping " if". pinfo->fd->flags.visited evaluates to true.
hide
|
|
| 5676 | | | dcv->se_data = GUINT_TO_POINTER((int)level); |
| 5677 | | | } |
| 5678 | | | |
| 5679 | | | if (check_col(pinfo->cinfo, COL_INFO)) |
Event 11:
Taking true branch. check_col(...) evaluates to true.
hide
|
|
| 5680 | | | col_append_fstr(pinfo->cinfo, COL_INFO, ", level %d", level); |
Uninitialized Variable
level was not initialized. The issue can occur if the highlighted code executes. See related event 8. Show: All events | Only primary events |
|
| |