(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 6512 | | | static int SpoolssEnumPrinterKey_q(tvbuff_t *tvb, int offset, |
| 6513 | | | packet_info *pinfo, proto_tree *tree, |
| 6514 | | | guint8 *drep) |
| 6515 | | | { |
| 6516 | | | char *key_name; |
| 6517 | | | |
| 6518 | | | |
| 6519 | | | |
| 6520 | | | offset = dissect_nt_policy_hnd( |
| 6521 | | | tvb, offset, pinfo, tree, drep, hf_hnd, NULL, NULL, |
| 6522 | | | FALSE, FALSE); |
| 6523 | | | |
| 6524 | | | offset = dissect_ndr_cvstring( |
| 6525 | | | tvb, offset, pinfo, tree, drep, sizeof(guint16), |
| 6526 | [+] | | hf_printerdata_key, TRUE, &key_name); |
Event 1:
!0 evaluates to true.
hide
Event 2:
dissect_ndr_cvstring() does not initialize key_name. - This may be because of a failure case or other special case for dissect_ndr_cvstring().
hide
|
|
 |
| 6527 | | | |
| 6528 | | | if (check_col(pinfo->cinfo, COL_INFO)) { |
Event 4:
Taking true branch. check_col(...) evaluates to true.
hide
|
|
| 6529 | | | const char *kn = key_name; |
Uninitialized Variable
key_name was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |