(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-windows-common.c) |
| |
| 1590 | | | dissect_nt_access_mask(tvbuff_t *tvb, gint offset, packet_info *pinfo, |
| 1591 | | | proto_tree *tree, guint8 *drep, int hfindex, |
| 1592 | | | struct access_mask_info *ami, guint32 *perms) |
| 1593 | | | { |
| 1594 | | | proto_item *item; |
| 1595 | | | proto_tree *subtree, *generic_tree, *standard_tree, *specific_tree; |
| 1596 | | | guint32 access; |
| 1597 | | | |
| 1598 | | | if (drep != NULL) { |
Event 1:
Taking true branch. drep != (void *)0 evaluates to true.
hide
|
|
| 1599 | | | |
| 1600 | | | |
| 1601 | | | |
| 1602 | | | |
| 1603 | | | |
| 1604 | | | |
| 1605 | | | offset = dissect_ndr_uint32(tvb, offset, pinfo, NULL, drep, |
| 1606 | [+] | | hfindex, &access); |
Event 2:
dissect_ndr_uint32() does not initialize access. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 1607 | | | } else { |
| 1608 | | | |
| 1609 | | | |
| 1610 | | | |
| 1611 | | | |
| 1612 | | | |
| 1613 | | | |
| 1614 | | | access = tvb_get_letohl(tvb, offset); |
| 1615 | | | offset += 4; |
| 1616 | | | } |
| 1617 | | | |
| 1618 | | | if (perms) { |
Event 4:
Taking true branch. perms evaluates to true.
hide
|
|
| 1619 | | | *perms = access; |
Uninitialized Variable
access was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |