(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-samr.c) |
| |
| 2384 | | | samr_dissect_bitmap_AcctFlags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_) |
| 2385 | | | { |
| 2386 | | | proto_item *item = NULL; |
| 2387 | | | proto_tree *tree = NULL; |
| 2388 | | | |
| 2389 | | | guint32 flags; |
| 2390 | | | ALIGN_TO_4_BYTES;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-nt.h |
| |
50 | #define ALIGN_TO_4_BYTES \ |
51 | { dcerpc_info *xzdi; \ |
52 | xzdi=pinfo->private_data; \ |
53 | if(!xzdi->conformant_run) { \ |
54 | if(offset&0x03) { \ |
55 | offset=(offset&0xfffffffc)+4; \ |
56 | } \ |
57 | } \ |
58 | } |
| |
|
Event 1:
Skipping " if". xzdi->conformant_run evaluates to true.
hide
|
|
| 2391 | | | |
| 2392 | | | if (parent_tree) { |
Event 2:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 2393 | | | item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, 4, TRUE); |
| 2394 | | | tree = proto_item_add_subtree(item,ett_samr_samr_AcctFlags); |
| 2395 | | | } |
| 2396 | | | |
| 2397 | [+] | | offset = dissect_ndr_uint32(tvb, offset, pinfo, NULL, drep, -1, &flags); |
Event 3:
dissect_ndr_uint32() does not initialize flags. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 2398 | | | proto_item_append_text(item, ": "); |
| 2399 | | | |
| 2400 | | | if (!flags) |
Uninitialized Variable
flags was not initialized. The issue can occur if the highlighted code executes. See related event 3. Show: All events | Only primary events |
|
| |