(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 6737 | | | static int SpoolssEnumPrinterDataEx_r(tvbuff_t *tvb, int offset, |
| 6738 | | | packet_info *pinfo, proto_tree *tree, |
| 6739 | | | guint8 *drep) |
| 6740 | | | { |
| 6741 | | | guint32 size, num_values; |
| 6742 | | | proto_item *hidden_item; |
| 6743 | | | |
| 6744 | | | hidden_item = proto_tree_add_uint( |
| 6745 | | | tree, hf_printerdata, tvb, offset, 0, 1); |
| 6746 | | | PROTO_ITEM_SET_HIDDEN(hidden_item);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
319 | #define PROTO_ITEM_SET_HIDDEN(proto_item) \ |
320 | ((proto_item) ? FI_SET_FLAG((proto_item)->finfo, FI_HIDDEN) : 0) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
246 | #define FI_SET_FLAG(fi, flag) (fi->flags = fi->flags | flag) |
| |
|
Event 1:
hidden_item evaluates to false.
hide
|
|
| 6747 | | | |
| 6748 | | | |
| 6749 | | | |
| 6750 | | | offset = dissect_ndr_uint32( |
| 6751 | | | tvb, offset, pinfo, tree, drep, |
| 6752 | | | hf_buffer_size, &size); |
| 6753 | | | |
| 6754 | | | dissect_ndr_uint32( |
| 6755 | | | tvb, offset + size + 4, pinfo, NULL, drep, hf_returned, |
| 6756 | [+] | | &num_values); |
Event 2:
dissect_ndr_uint32() does not initialize num_values. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 6757 | | | |
| 6758 | | | if (size) { |
Event 4:
Taking true branch. size evaluates to true.
hide
|
|
| 6759 | | | proto_item *item; |
| 6760 | | | proto_tree *subtree; |
| 6761 | | | int offset2 = offset; |
| 6762 | | | guint32 i; |
| 6763 | | | |
| 6764 | | | item = proto_tree_add_text( |
| 6765 | | | tree, tvb, offset, 0, "Printer data"); |
| 6766 | | | |
| 6767 | | | subtree = proto_item_add_subtree(item, ett_PRINTER_DATA_CTR); |
| 6768 | | | |
| 6769 | | | for (i=0; i < num_values; i++) |
Uninitialized Variable
num_values was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |