(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 5536 | | | static int SpoolssEnumPrinterDrivers_q(tvbuff_t *tvb, int offset, |
| 5537 | | | packet_info *pinfo, proto_tree *tree, |
| 5538 | | | guint8 *drep) |
| 5539 | | | { |
| 5540 | | | dcerpc_info *di = (dcerpc_info *)pinfo->private_data; |
| 5541 | | | dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data; |
| 5542 | | | guint32 level; |
| 5543 | | | |
| 5544 | | | |
| 5545 | | | |
| 5546 | | | offset = dissect_ndr_str_pointer_item( |
| 5547 | | | tvb, offset, pinfo, tree, drep, NDR_POINTER_UNIQUE, |
| 5548 | | | "Name", hf_servername, 0); |
| 5549 | | | |
| 5550 | | | offset = dissect_ndr_str_pointer_item( |
| 5551 | | | tvb, offset, pinfo, tree, drep, NDR_POINTER_UNIQUE, |
| 5552 | | | "Environment", hf_servername, 0); |
| 5553 | | | |
| 5554 | | | offset = dissect_ndr_uint32( |
| 5555 | [+] | | tvb, offset, pinfo, tree, drep, hf_level, &level); |
Event 1:
dissect_ndr_uint32() does not initialize level. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 5556 | | | |
| 5557 | | | |
| 5558 | | | if(!pinfo->fd->flags.visited){ |
Event 3:
Skipping " if". pinfo->fd->flags.visited evaluates to true.
hide
|
|
| 5559 | | | dcv->se_data = GUINT_TO_POINTER((int)level); |
| 5560 | | | } |
| 5561 | | | |
| 5562 | | | if (check_col(pinfo->cinfo, COL_INFO)) |
Event 4:
Taking true branch. check_col(...) evaluates to true.
hide
|
|
| 5563 | | | 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 1. Show: All events | Only primary events |
|
| |