(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-spoolss.c) |
| |
| 1334 | | | dissect_DEVMODE_fields(tvbuff_t *tvb, gint offset, packet_info *pinfo, |
| 1335 | | | proto_tree *tree, guint8 *drep _U_, guint32 *pdata) |
| 1336 | | | { |
| 1337 | | | proto_item *item; |
| 1338 | | | proto_tree *subtree; |
| 1339 | | | guint32 fields; |
| 1340 | | | proto_item *hidden_item; |
| 1341 | | | |
| 1342 | | | hidden_item = proto_tree_add_uint( |
| 1343 | | | tree, hf_devmode, tvb, offset, 0, 1); |
| 1344 | | | 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
|
|
| 1345 | | | |
| 1346 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, NULL, drep, |
| 1347 | [+] | | hf_devmode_fields, &fields); |
Event 2:
dissect_ndr_uint32() does not initialize fields. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 1348 | | | |
| 1349 | | | item = proto_tree_add_text(tree, tvb, offset - 4, 4, |
| 1350 | | | "Fields: 0x%08x", fields); |
Uninitialized Variable
fields was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |