(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 3265 | | | static int SpoolssGetPrinter_q(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 3266 | | | proto_tree *tree, guint8 *drep _U_) |
| 3267 | | | { |
| 3268 | | | dcerpc_info *di = (dcerpc_info *)pinfo->private_data; |
| 3269 | | | dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data; |
| 3270 | | | guint32 level; |
| 3271 | | | |
| 3272 | | | |
| 3273 | | | |
| 3274 | | | offset = dissect_nt_policy_hnd( |
| 3275 | | | tvb, offset, pinfo, tree, drep, hf_hnd, NULL, NULL, |
| 3276 | | | FALSE, FALSE); |
| 3277 | | | |
| 3278 | | | offset = dissect_ndr_uint32( |
| 3279 | [+] | | 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
|
|
 |
| 3280 | | | |
| 3281 | | | |
| 3282 | | | if(!pinfo->fd->flags.visited){ |
Event 3:
Skipping " if". pinfo->fd->flags.visited evaluates to true.
hide
|
|
| 3283 | | | dcv->se_data = GINT_TO_POINTER((int)level); |
| 3284 | | | } |
| 3285 | | | |
| 3286 | | | |
| 3287 | | | if (check_col(pinfo->cinfo, COL_INFO)) |
Event 4:
Taking true branch. check_col(...) evaluates to true.
hide
|
|
| 3288 | | | 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 |
|
| |